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 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.



Reply via email to