Advertisement
Guest User

Untitled

a guest
May 27th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. # I don't remember what this does but it's important.
  4. O=$IFS
  5. IFS=$(echo -en "\n\b")
  6.  
  7. for directory in `ls $1/*`
  8. do
  9.  if [ -d "$1/$directory" ]
  10.    then
  11.      artist=`echo $directory | cut -d'-' -f1`
  12.      album=`echo $directory | cut -d'-' -f2`
  13.      echo $album
  14.      #mkdir -p "$artist/$album"
  15.      #cp "$1/$directory/"* "$2/$artist/$album" --copy-contents -vu
  16.  fi
  17. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement