 |
BASH: Read entire file line in for loop - LinuxQuestions.org
Hi there, Does anyone know of a way to read an entire file line as an argument to a for loop? For example: we have my.file: My name is boo. I like to foo. Isn't that coo? Then, the BASH script: [code] for entry in $(cat my.file) do.... done [end code] Wha
www.linuxquestions.org |
 |