Answers for "how to echo out each line in bash script"

2

for line in output bash

Use for in bash for iterating words in a string or values in an array as:
for value in {1, 2, 3}; do echo $value; done
for value in $(cat arguments_files.txt); do [some_command]; done
And use while for iterating lines from a pipe output as:
cat arguments_file.txt | while read line; do [some_command]; done
Posted by: Guest on October-26-2020
0

bash echo each line

set -x
Posted by: Guest on August-31-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language