mv -n /path/to/source/* /path/to/dest/to take care of all of the artists that only the source has. The -n flag means "never overwrite an existing file". Next, we'll try to take care of unique albums:
for artist in /path/to/source/*; do
mv -n /path/to/source/$artist/* /path/to/dest/$artist/;
doneThis will move all albums that only the source has to their respective artist directories in the destination.for artist in /path/to/source/*; do
for album in /path/to/source/$artist/*; do
mv -n /path/to/source/$artist/$album/* /path/to/dest/$artist/$album/;
done
done You might want to verify that this works before running it by replacing instances of 'mv -n' with 'echo' - echo will simply print out its arguments, allowing you to see what will happen before it actually does.You are not logged in, either login or create an account to post comments
posted by jordanlewis at 1:03 AM on March 8