about summary refs log blame commit diff stats
path: root/bin/smv
blob: 742d1d3fb61e310ca1440f3cf9de9ec9437e2556 (plain) (tree)
1
2
3
4
5
6
7
8
9
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