Re: ignoring comments in a 'cat' call

2009-10-09 Thread Marc Herbert
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

Re: ignoring comments in a 'cat' call

2009-10-09 Thread Bob Proulx
Marc Herbert wrote: Bob Proulx a écrit : 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 :-) And they aren't desirable in the

Re: ignoring comments in a 'cat' call

2009-10-08 Thread Bob Proulx
Tamlyn1978 wrote: I have a file with a list of programs with comments describing what they do, e.g. unison # file syncronisation grass # gis program I have a script, which I run as root and includes the command: m...@me:~$ aptitude install $(cat programs) -y where 'programs' is the

ignoring comments in a 'cat' call

2009-10-07 Thread Tamlyn1978
I have a file with a list of programs with comments describing what they do, e.g. unison # file syncronisation grass # gis program I have a script, which I run as root and includes the command: m...@me:~$ aptitude install $(cat programs) -y where 'programs' is the file with the list of

Re: ignoring comments in a 'cat' call

2009-10-07 Thread Chris F.A. Johnson
On Wed, 7 Oct 2009, Tamlyn1978 wrote: I have a file with a list of programs with comments describing what they do, e.g. unison # file syncronisation grass # gis program I have a script, which I run as root and includes the command: m...@me:~$ aptitude install $(cat programs) -y