Skip to content

Instantly share code, notes, and snippets.

@dcvezzani
Created April 16, 2015 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcvezzani/4e210993c2a0b620cdec to your computer and use it in GitHub Desktop.
Save dcvezzani/4e210993c2a0b620cdec to your computer and use it in GitHub Desktop.
move files to a new location; leave redirect behind
base_dst_path="/Volumes/Extra/dave/downloads"
for file in \
BW-1161.exe milkallergy-companion-and-cookbook.pdf iPhoneConfigUtility.dmg Screenhero.zip iPhotoLibraryUpgrader.dmg join.me.zip
do
#mv $file $base_dst_path
ln -s $base_dst_path/$file
#echo -e "# file was moved on "$(date +"%Y-%m-%d %H:%M:%S")"\nopen \"$base_dst_path/$file\"" > $file.txt
done
@dcvezzani
Copy link
Author

trying to clean up my hard drive to make more room and I want to leave artifacts behind that a search could hit and point to the new location

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment