Quantcast
Channel: d0wn
Viewing all articles
Browse latest Browse all 73

Bash – Loop over the contents of a file line by line

$
0
0

If you need to iterate over the content of a file line by line
You can use this little bash trick.

In this case , it will simply print the line, but if you need to do an operation on the text , just insert your code into the while loop.


Viewing all articles
Browse latest Browse all 73

Trending Articles