$ echo *.par2
or to get one filename per line :
$ for i in *.par2; do echo $i; done
So to mass-repair everything in a directory simply type :
$ for i in *.par2; do par2repair $i; done
EDIT : only works if the extension in "vol**+**.PAR2" is capitalized :-(
Wednesday, January 25, 2006
Subscribe to:
Post Comments
(
Atom
)
5 comments :
I found your info useful and get around the case sensitivity like this.
for i in *.[pP][aA][rR]2; do par2 r $i; done
Hope it helps someone else!
thanks for your comment!
I've updated the FAQ with your comment.
check out this (complex) shellscript to automate the task:
http://sourceforge.net/projects/altbinrepair/
I had spaces in the filenames. This one did the trick for me:
for i in "*.par2"; do par2repair $i; done
Post a Comment