經安全檢測,此網站為安全網站,請放心前往原始網址!

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

網址安全性掃描由 google 提供