Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # I don't remember what this does but it's important.
- O=$IFS
- IFS=$(echo -en "\n\b")
- for directory in `ls $1/*`
- do
- if [ -d "$1/$directory" ]
- then
- artist=`echo $directory | cut -d'-' -f1`
- album=`echo $directory | cut -d'-' -f2`
- echo $album
- #mkdir -p "$artist/$album"
- #cp "$1/$directory/"* "$2/$artist/$album" --copy-contents -vu
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement