Last active
October 17, 2015 11:28
-
-
Save cpswan/1251b6f2e45110e31933 to your computer and use it in GitHub Desktop.
Attempt to create symlinks for best quality music from mix of wav and mp3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while read -u 3 outerdir | |
do | |
cd "${outerdir}" | |
ls -1 ../../wav/"${outerdir}" > list | |
while read -u 4 innerdir | |
do | |
ln -s ../../wav/"${outerdir}"/"${innerdir}" "${innerdir}" | |
done 4< list | |
done 3< test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -1 ../wav > tree | |
while read line; do mkdir -p "${line%/*}"; done < tree |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment