about summary refs log tree commit diff stats
path: root/bin/smv
diff options
context:
space:
mode:
Diffstat (limited to 'bin/smv')
-rwxr-xr-xbin/smv10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/smv b/bin/smv
new file mode 100755
index 0000000..742d1d3
--- /dev/null
+++ b/bin/smv
@@ -0,0 +1,10 @@
+#!/bin/sh
+# smv: special move
+# smv pipeline file1 file2 file3 ...
+# $1 is the pipeline to apply to the filenames of the files listed
+CMD="$1"
+shift
+for file
+do
+	mv "$file" "$(printf "$file"|sh -c "$CMD")"
+done