Skriftan…


#!/bin/bash

if [ -n "$(ls 2>/dev/null *01.rar|grep *01.rar)" ]; then
rar x *01.rar
if [ -n "$(ls 2>/dev/null *bin)" ]; then
for i in *bin ; do vcdrip –rip –bin-file=“$i” ; done
mv *mpg cd.mpg
rm *cue *bin
fi
fi

if [ -n "$(ls 2>/dev/null *.rar|grep *.rar)" ]; then
rar x *rar
if [ -n "$(ls 2>/dev/null *bin)" ]; then
for i in *bin ; do vcdrip –rip –bin-file=“$i” ; done
mv *mpg cd.mpg
rm *cue *bin
fi
fi

for cddir in CD1 CD2 CD3 CD4 CD5 CD6 Cd1 Cd2 Cd3 Cd4 Cd5 Cd6 cd1 cd2 cd3 cd4 cd5 cd6; do

if cd $cddir &>/dev/null; then

if [ -n "$(ls 2>/dev/null *01.rar|grep *01.rar)" ]; then
rar x *01.rar
if [ -n "$(ls 2>/dev/null *bin)" ]; then
for i in *bin ; do vcdrip –rip –bin-file=“$i” ; done
if [ -n "$(ls 2>/dev/null avseq02.mpg)" ]; then
rm avseq01.mpg
fi
mv *mpg ../$cddir.mpg
rm *cue *bin
cd ..
for i in $cddir.mpg ; do mv – $i `echo $i|tr A-Z a-z` ; done
else
mv *mpg ../$cddir.mpg
cd ..
for i in $cddir.mpg ; do mv – $i `echo $i|tr A-Z a-z` ; done
fi

else
rar x *rar
if [ -n "$(ls 2>/dev/null *bin)" ]; then
for i in *bin ; do vcdrip –rip –bin-file=“$i” ; done
if [ -n "$(ls 2>/dev/null avseq02.mpg)" ]; then
rm avseq01.mpg
fi
mv *mpg ../$cddir.mpg
rm *cue *bin
cd ..
for i in $cddir.mpg ; do mv – $i `echo $i|tr A-Z a-z` ; done
else
mv *mpg ../$cddir.mpg
cd ..
for i in $cddir.mpg ; do mv – $i `echo $i|tr A-Z a-z` ; done
fi
fi
fi
done

————————– —————————————–

svo er það að setja þessa 2 pakkana upp sem eru hérna

http://www.gulli.d2g.com/opid/Cue-bin%20to%20m peg/

chmodda skránna 744 og skýra hana t.d “film” og koma henni fyrir í /bin
eða /sbin

svo er bara að skella sér í möppu sem myndir eru t.d

[root@enigma Great.Movie.SVCD] og gera skipunina film
Have a nice day, somewere else