diff options
Diffstat (limited to 'flactomp3')
-rwxr-xr-x | flactomp3 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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#=}' |