I have a folder mostly containing mp4 videos. I want to extract the audio of those videos.
for i in $(ls); do echo ffmpeg -i $i $i_mp3; done
This command doesn't take any concern for the none mp4 files, and it seems to be adding line breaks in the ls command.