sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #72816
Re: Script der itererer over jpg filer i et directory
Jesper Honig Spring <jhspring@xxxxxxxxxxx> writes:
> for file in `ls *.jpg`
> do
> echo $file
> # Manipulation should be done here
> done
ls | while read file ; do
echo $file
#mere manipulation...
done
Er rimelig robust over for sjove filnavne. Har du filnavne med
newlines i, så virker det selvfølgelig ikke.
--
Peter Makholm | Yes, you can fight it, but in the end the ultimate
peter@xxxxxxxxxxx | goal of life is to have fun
http://hacking.dk | -- Linus Torvalds
References