On Sat, Dec 20, 2008 at 02:46, lonely wolf <wo...@pcnet.ro> wrote: > On 12/20/2008 02:30 AM, ghrt wrote: >> >> salut >> >> am scris un programel >> >> for FISIER in `ls *.avi` >> do >> mencoder $FISIER -sub $FISIER.srt -o ./P2000/$FISIER -oac pcm -ovc lavc >> -lavcopts vcodec=mjpeg >> done >> > mencoder "$FISIER" -sub "$FISIER".srt -o ./P2000/"$FISIER" -oac pcm -ovc > lavc -lavcopts vcodec=mjpeg
N-o sa mearga pentru ca for sparge tot dupa $IFS. Solutiile pe care le vad acum sunt fie redefinirea IFS, fie find | while read , fie find -print0 | xargs -0 , fie alte solutii non-bash. PS: `ls *.avi` e din categoria useless use of cat, *.avi era fix la fel (caz in care in scriptul de mai sus apare o surpiza placuta pe care n-o desconspir acum). -- "Unix was written to play Spacewar and cheat at Scrabble, but Linux was created merely to prove that it booted." - a.s.r. quote _______________________________________________ RLUG mailing list RLUG@lists.lug.ro http://lists.lug.ro/mailman/listinfo/rlug