blob: 742d1d3fb61e310ca1440f3cf9de9ec9437e2556 (
plain) (
tree)
|
|
#!/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
|