perl -ne 'print unless /^\s*#/' your_script_file #### open (PASSWDFILE, "//etc//passwd");