hello all,
i have an update on this command. I finally figured it out.
Code:
#!/bin/bash
cd /DIR/DIR
set=$(ls -1 | grep '.MOV'')
for var in $set; do
mencoder -vf rotate=1 -o $(echo $var | sed -e 's/.MOV/.avi/g') -oac pcm -ovc lavc "$var"
rm "$var"
done
Note: That is a ONE and not an L in the ls -1 section!
---------- Post added 10-02-11 at 01:45 AM ----------
hello all,
i have an update on this command. I finally figured it out.
Code:
#!/bin/bash
cd /DIR/DIR
set=$(ls -1 | grep '.MOV'')
for var in $set; do
mencoder -vf rotate=1 -o $(echo $var | sed -e 's/.MOV/.avi/g') -oac pcm -ovc lavc "$var"
rm "$var"
done
Note: That is a ONE and not an L in the ls -1 section!