|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Comment Stripper script for unixby Abigail-II (Bishop) |
| on Jun 14, 2004 at 13:22 UTC ( [id://366628]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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..Well, a simple grep -v ^\# will do that. If an "active" line has a trailing comment, it doesn't matter. It also doesn't explain why you want to remove comments from a shell script. Abigail
In Section
Code Catacombs
|
|
||||||||||||||||||||||||