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

Top Page

Reply to this message
Author: Andy Random
Date:  
To: Hampshire LUG Discussion List
Subject: [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