[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ignoring comments in a 'cat' call
From: |
Tamlyn1978 |
Subject: |
ignoring comments in a 'cat' call |
Date: |
Wed, 7 Oct 2009 16:54:04 -0700 (PDT) |
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:
me@me:~$ aptitude install $(cat programs) -y
where 'programs' is the file with the list of programs. Aptitude does not
ignore the '#' comments, reading them, and the subsequent comment text as
package files.
Is there a way to make 'cat' ignore the comments or is there a better
alternative to cat in this case?
--
View this message in context:
http://www.nabble.com/ignoring-comments-in-a-%27cat%27-call-tp25796419p25796419.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.
- ignoring comments in a 'cat' call,
Tamlyn1978 <=