lamer: added piped find to sort, removed trailing whitespaces
[mirrors/Programs.git] / bash / lame-recoder / lamer.bash
index da3b225583f2d861c339f5e059f12518fef70386..ff0602e74380dfd45ef46dcaf3ee912abfd48b2b 100755 (executable)
@@ -82,11 +82,11 @@ encode() {
        tsign "    Done: '$infile'; retval=$?";
 }
 
-echo "==> I will use $cpus CPU cores"; 
+echo "==> I will use $cpus CPU cores";
 export -f encode; export quality outdir lamelog
-find -regextype posix-egrep -iregex '.*'"$filetypes" | grep -v /"$outdir" | tr '\r\n' '\0\0' | xargs -0 -n 1 -P "$cpus" bash -c 'encode "$@"' --
+find -regextype posix-egrep -iregex '.*'"$filetypes" | grep -v /"$outdir" | sort -n | tr '\r\n' '\0\0' | xargs -0 -n 1 -P "$cpus" bash -c 'encode "$@"' --
 echo '
 
-==> All files were processed. 
+==> All files were processed.
 ==> But you should rather check them before deleting the originals...
 ==> Thank you for using lame-recursive by Harvie ( http://blog.harvie.cz/ )'
This page took 0.10967 seconds and 4 git commands to generate.