0
votes
53
views
move multiple files using bash
posted at March 16, 2019, 8:37 a.m. - 2 months ago

# This method if the files has no extentions. $ for file in *; do mv "$file" "$file.png"; done # This method if the files has extentions before. $ for ...

bash linux
0
votes
150
views
Convert all mp4 files into mp3 files
posted at July 24, 2018, 5:37 a.m. - 10 months ago

One method is a bash *for loop*. Easy convert to .mp3 files: mkdir outputs/ for f in *.mp4; do ffmpeg -i "$f" "outputs/${f%.mp4}.mp3"; done For converting only .mp4 files: mkdir ...