Timothy Hospedales writes:
> Thats what it would probably have to do since image magick's convert
> seems to refuse to convert multiple files on one command line.
In that case use 'xargs -n1' so that xargs will only pass image magick one
file at a time:
find . -name '*.jpg' | xargs -n1 ./
With the example echo script only returns: (Despite the fact that there are
many .jpgs)
$find . -name '*.jpg' | xargs ./Suggestion.sh
./test1.jpg
$
Is this how it is meant to work?
I was reading the man page for xargs but didnt understand most of it: I get the
impression that xargs should do:
./Su
Or xv -wloop -wait 3 *
Or xv -random -wait 5 *
John Hasler wrote:
> Timothy Hospedales writes:
>
> > I have afew thousand .jpg files from my scanner and I want to rotate them
> > all and maybe some other things.
> > ...
> > I cant figure out how to make a bash script to do this easily.
>
> man
Timothy Hospedales writes:
> I have afew thousand .jpg files from my scanner and I want to rotate them
> all and maybe some other things.
> ...
> I cant figure out how to make a bash script to do this easily.
man xargs.
--
John HaslerThis posting is in the public domain.
[EMAIL P
--cut here
#!/bin/sh
#$1 holds first command line argument
#do stuff to $1 here...
echo $1 #example
--end cut
Put this in a file, then chmod +x that file.
Now, invoke this like so:
$ find . -name '*.jpg' | xargs myscript.sh
Carl
Hi! I have a file processing task and would like some advice on how
best to go about it!
I have afew thousand .jpg files from my scanner and I want to rotate
them all and maybe some other things. I forget the exact command but with
something like "imagemagick -rotate 90 " where inf
6 matches
Mail list logo