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