[MPlayer-users] jpeg sequence while encoding
Georgi Georgiev
chutz at gg3.net
Mon Dec 2 15:58:02 CET 2002
On Fri, Nov 22, 2002 at 01:58:26PM -0800, Sycotic Smith wrote:
> have to rename each file, or symlink it. Maybe another option would be for
> <him/her/someone else> to write a script to rename multiple files to a batch,
> like *.<jpg,gif,png,tif,etc> to 000001.<jpg,gif,png,etc>. I do recall seeing
> st like this out there, tho can't remember the name of the script.
What about
i=0; for f in `ls -tr`; do ((i++)); ln -s "$f" `printf "%09d-%s" "$i" "$f"` ; done
--
/^^^^^^^^^^^^^^^^^^^^^^^^^^^\/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\
/ Georgi Georgiev (-< / After all my erstwhile dear, My \
\ chutz at chubaka.net /\ .o)\ no longer cherished, Need we say /
/ +81(90)6266-1163 V_/_ |(/)/ it was not love, Just because it \
\ ^^^^^^^^^\ perished? -- Edna St. Vincent /
\ / Millay \
\_________________________/\__________________________________/
More information about the MPlayer-users
mailing list