Re^2: Comment Stripper script for unixby hsinclai (Deacon)
|on Jun 14, 2004 at 15:35 UTC||Need Help??|
Your program will strip she-bang lines unless such a line starts with whitespace.
Are you sure about that? The shebang line is not stripped, if it is the first line, which gets preserved and re-inserted back into the final output..
update- you're totally right about that, I screwed it up..
why do you think this is useful for system administration..
Because removing commented lines lets you get a quick view only of active lines - in a file that might have only a few active lines among several screens of commented lines, e.g. a stock squid.conf file..
Thanks for the feedback!