Search This Blog

Tuesday, February 10, 2009

Display file without empty lines and comments

[This will display file contents, but dont displays the empty files and lines starting with # i.e comments]

grep -v '^#' /root/Desktop/chk_services.sh | grep -v '^$

No comments:

Post a Comment