www.cyberciti.biz: check if file is empty or not using shell script bashscriptstackoverflow.com: remove “#” and empty lines with one sed command bashscriptstackoverflow.com: remove the first line of a text file using bash/sed script? bashscript