Skip to content

Instantly share code, notes, and snippets.

@Kolin
Created June 25, 2013 10:57
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 Kolin/596f5bf5d21a9fba0164 to your computer and use it in GitHub Desktop.
Save Kolin/596f5bf5d21a9fba0164 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ -w "$1" ] && [ -r "$1" ]; then
mv "$1" ~/.trash/
else
echo "$0: $1: unknown file or directory"
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment