diff options
Diffstat (limited to 'bin/smv')
| -rwxr-xr-x | bin/smv | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |