≡ Menu

white space

Bash / KSH: Define Delimiter (IFS) While Using read Command

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

Bash Shell: Trim Leading White Space From Input Variables

My script depends upon $1 to take certain actions:

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…]