0
votes
44
views
move multiple files using bash
posted at March 16, 2019, 8:37 a.m. - 7 months, 1 week 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
132
views
Convert all mp4 files into mp3 files
posted at July 24, 2018, 5:37 a.m. - 1 year, 3 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 …