Say I have this file:
I'd like to have the for iterate over each line individually ignoring whitespaces though, i.e. the last two lines should be replaced by:
With for and IFS (internal field separator):
Or with read (no more cat):
* What is IFS in context of for looping?
* Linux tip: Using the read command