Remove blank lines from the beginning of a file
This morning Marcos asked me for a solution to a common issue in a sysadmin/developer daily work. He needed a way to quickly/easily remove blank lines from the beginning of a file, if they exist (hehe, it doesn't work to assume the first lines are blank...).
sed '/./,$!d' filename
And I quickly build a small shell script that uses it to parse a given file and create a parsed version of the file:
Perhaps some of you could find it useful... who knows... ;D