[ILUG] quick bash loop?

Thomas Pedoussaut thomas at staffeurs.org
Tue May 22 16:31:18 IST 2012


find -exec is your friend

find /wherever -type f -mtime XXX ... -exec mycommand {} \;

On 22/05/12 17:15, Bernhard Rohrer wrote:
> Hi guys
>
> may I ask for help with bash again please? I have a .jar that when told to work on * only works on the first file in the directory. Can anybody suggest a simple way to make it munch through the whole directory?
>
> Thanks
>
> /Bernhard
>
> --


More information about the ILUG mailing list