Skip to content
Snippets Groups Projects
Commit 0cf6b3ca authored by hdd29's avatar hdd29
Browse files

Q3

parent 63acd569
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#
#Created by Hanh Do Phung (Teddy)
# 04/17/2019
#
#This is to organise music
for file in *.mp3
do
folder="${file%% -*}"
fileName="${file##*- }"
mkdir -p "$folder"
mv "$file" "$folder"/"$fileName"
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment