[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ignoring comments in a 'cat' call
From: |
Marc Herbert |
Subject: |
Re: ignoring comments in a 'cat' call |
Date: |
Fri, 09 Oct 2009 09:41:36 +0100 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090320) |
Bob Proulx a écrit :
> > Tamlyn1978 wrote:
>> >> Is there a way to make 'cat' ignore the comments or is there a better
>> >> alternative to cat in this case?
> >
> > Note that if 'cat' didn't exactly reproduce the contents of input on
> > the output I would consider that a grave bug.
Well... GNU cat has a number of options, and almost every single one is
munging the output :-)
> > Instead of using $(cat SOMEFILE) it is better to avoid the extra
> > process and use $(< SOMEFILE) instead. It is built into the shell and
> > is the right way to do that task.
It is more efficient but I think it is not standard.
Cheers,
Marc