« revolution to the origin | Main | vhs hell iii: somebody shoot me »

April 7, 2006

runner forgot to mark a segment?

no problem ...


#!/bin/bash

i=1
j=1
while `test ${i} -le 41`
do
if `test ${j} -le 9`
then
ii=0${j}
else
ii=${j}
fi
if `test ${j} -eq 15`
then
mv -vi slyf-i-41.avi SlyCooper_255_part15_IQ.avi
mv -vi slyf-h-41.avi SlyCooper_255_part15_HQ.avi
mv -vi slyf-m-41.avi SlyCooper_255_part15.avi
mv -vi slyf-l-41.avi SlyCooper_255_part15_LQ.avi
else
mv -vi slyf-i-${i}.avi SlyCooper_255_part${ii}_IQ.avi
mv -vi slyf-h-${i}.avi SlyCooper_255_part${ii}_HQ.avi
mv -vi slyf-m-${i}.avi SlyCooper_255_part${ii}.avi
mv -vi slyf-l-${i}.avi SlyCooper_255_part${ii}_LQ.avi
i=`expr ${i} + 1`
fi
j=`expr ${j} + 1`
done

exit 0

Posted by njahnke at April 7, 2006 10:36 AM

Comments

Um, what does this exactly do?

Posted by: DTaeKim at April 19, 2006 4:58 PM

it inserted the segment 15 (up to that point called 14_2, or, there, 41) that was not marked on the vhs and incremented the number of every segment following that by one at the same time as it changed the files from their so-called nate names (projectname-quality-number) to their radix names (gamename_runtype_time_quality_partn).

Posted by: nate Author Profile Page at April 20, 2006 11:08 AM

Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Remember me?