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

Top Page
Author: Andy Smith
Date:  
To: hampshire
Subject: Re: [Hampshire] Executing a command on a list of files?

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x5748f100.hantslug.org.uk.15002': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Thu Feb 22 02:14:07 2007 GMT
gpg: using DSA key 2099B64CBF15490B
gpg: Can't check signature: No public key
On Wed, Feb 21, 2007 at 08:42:04PM -0500, Andy Random wrote:
>
> Hi,
>
> I have several files which contain lists of files that I want to execute a
> command on.


for f in $(cat /some/list ./of/many ./files); do whatever_comand $f; done

Cheers,
Andy