How to loop over the lines of a file?
Let's say I
cat a file and I want to run a bash command on each line and write each line as output.
How can I run a bash command on a single line the most succinct way?
cat something | lineBylineInplpace grep -E "spo" > &1
(I forget the standard descriptor symbol = / )
Should output the output of each line to the new file in place with the line it used for input.
I realize that this is very similar to awk. Is there a bash builtin kind of way to make this faster?