[Hampshire] Executing a command on a list of files?

Αρχική Σελίδα

Reply to this message
Συντάκτης: Andy Random
Ημερομηνία:  
Προς: Hampshire LUG Discussion List
Αντικείμενο: [Hampshire] Executing a command on a list of files?

Hi,

I have several files which contain lists of files that I want to execute a
command on.

I could write a perl script to read the file and process each line,
executing the desired command on each filename. However ideally I'd like a
portable way of doing this on any system, so ideally I'm looking for a
more elegant way of doing this using using bash and standard linux
commands.

Any suggestions?

Andy