summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xflactomp32
1 files changed, 1 insertions, 1 deletions
diff --git a/flactomp3 b/flactomp3
index 1edcfb4..1939569 100755
--- a/flactomp3
+++ b/flactomp3
@@ -16,4 +16,4 @@ dir=${1%/}
copydir_suffix="_mp3"
# same regex twice, but different replacement pattern
-find "$dir" -type f -name '*.flac' -print0 | parallel -0 echo mkdir -p '{=s#^([^/]+)(.*)/([^/]+)\.flac$#\1'"${copydir_suffix}"'\2#=}'\; echo ffmpeg -i {} -qscale:a 0 '{=s#^([^/]+)(.*)/([^/]+)\.flac$#\1'"${copydir_suffix}"'\2\3.mp3#=}'
+find "$dir" -type f -name '*.flac' -print0 | parallel -0 mkdir -p '{=s#^([^/]+)(.*)/([^/]+)\.flac$#\1'"${copydir_suffix}"'\2#=}'\; ffmpeg -i {} -qscale:a 0 '{=s#^([^/]+)(.*)/([^/]+)\.flac$#\1'"${copydir_suffix}"'\2\3.mp3#=}'