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

Etusivu
Lähettäjä: Andy Smith
Päiväys:  
Vastaanottaja: hampshire
Aihe: Re: [Hampshire] Executing a command on a list of files?

Vastaa
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x581cc100.hantslug.org.uk.903': 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