I'm writing a script for batch processing audio files, with xld. I want to find unsplitted albums, split them and convert them in flac, with the proper tags.
find . -name "*.ape" -exec sh -c 'exec xld "$1" -f flac' _ {} \;
this command line is converting the audio to flac but i have to add "-c filename.cue" option with xld to make it split the file.
find . -name "*.ape" -exec sh -c 'exec echo $1 | sed 's/.ape/.cue/'' _ {} ;
this command line shows me the path of .cue files
find . -name "*.ape" -exec sh -c 'exec xld "$1" -f flac -c $1 | sed 's/.ape/.cue/'' _ {} ;
this command line doesn't work, xld says he didn't found de cue file. i think it's just a syntax problem.
thanks for your help