≡ Menu

white space

How do I can set IFS (internal field separator) while using read command in bash loops?
[click to continue…]

My script depends upon $1 to take certain actions:

file="$1"
echo "|${file}|"

However, sometime there will leading while space which will result into:

|     output.txt|

How do I trim leading white space from one of my input variables?
[click to continue…]

HowTo: Read a File Line By Line Using awk

How do I read a file line by line using awk utility under Unix / Linux operating systems?
[click to continue…]