How?
How?
You should be able to use this script in a for loop if the script itself will not accept multiple input files.
You think that's air you're breathing now?
Maybe paste the script in between [ code][/code] tags or, if it's too long for that, put it in an attachment?
Andrew' suggestion is probably going to be the easiest, but we can't give any more useful information until we know how the script works, or at least its syntax. Give an example of how you would use the script for a single file, and a for loop would be trivial to construct.
sorry had a thought but not useful here
Last edited by shantiq; November 16th, 2012 at 10:12 AM.
Linux is Latin for off-the-beaten-track
what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
Playing with Slackware too now ...
ShanArt
hi there Andrew would you create the loop inside the script
or outside? i thought outside once it has been placed in the folder where the mkvs are
is not quite right is it?for f in *.mkv do ./mkvdts2ac3.sh "${f%.*}" ; done
Last edited by shantiq; November 16th, 2012 at 10:44 AM.
Linux is Latin for off-the-beaten-track
what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
Playing with Slackware too now ...
ShanArt
That seems like a really overlong script, for what it does.
If the standard usage is
thenCode:./mkvdts2ac3.sh input.mkv
No need for squiggly brackets, so far as I can see - you use those mostly for substitutions, i.e. changing 'mkv' to 'mp4' for a for loop containing ffmpeg - and you need a semicolon before the 'do'.Code:for f in *mkv; do mkvdts2ac3.sh "$f"; done
With a very appreciative nod to the creator of this script I have to admit that for my own personal usage I would tend not to use such scripts. With a little work and experimentation it is possible to do most of this sort of work 'by hand'. But if using it I would use a method similar to that described by evilsoup.
You think that's air you're breathing now?
Bookmarks