[TAG] 2cent tip
ny at youngman.org.uk
Fri Jun 6 21:32:59 MSD 2008
On Friday 06 June 2008 17:13, Joey Prestia wrote:
> Kapil Hari Paranjape wrote:
> > Hello,
> > On Fri, 06 Jun 2008, Thomas Bonham wrote:
> >> I thought I would sure this little perl script that will remove the
> >> comments out of a configuration file.
> > Why not just the following?
> > grep -v '^#.*' < input > output
The '.*' seems superfluous to me.
grep -v '^#'
> > Kapil.
> > --
> I take it a step farther and make it executable and put it in the path
> of system commands like /bin/ and this way it can be called from anywhere.
Maybe an alias or a shell function if it's just a one liner?
More information about the TAG