summaryrefslogtreecommitdiffstats
path: root/clean
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-14 08:47:59 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-14 08:47:59 +0200
commita1545765f7a22f8d649539692c234c5d67714ff2 (patch)
tree3d252544f2f6c1b923f632780d2691cb3eeb6be3 /clean
downloadbin-a1545765f7a22f8d649539692c234c5d67714ff2.zip
bin-a1545765f7a22f8d649539692c234c5d67714ff2.tar.gz
add clean
Diffstat (limited to 'clean')
-rwxr-xr-xclean4
1 files changed, 4 insertions, 0 deletions
diff --git a/clean b/clean
new file mode 100755
index 0000000..5680003
--- /dev/null
+++ b/clean
@@ -0,0 +1,4 @@
+#! /bin/sh
+DIR=${1:-$HOME}
+echo "find $DIR -name '*~' -exec rm '{}' \;"
+find $DIR -name '*~' -exec rm '{}' \;