Tuesday, 12 September 2017

Redirecting output to file and reading back from file

1) ls  > fileName



2) while read line ;
do
echo $ line
done < fileName



https://stackoverflow.com/questions/1521462/looping-through-the-content-of-a-file-in-bash

No comments:

Post a Comment