diff options
Diffstat (limited to 'home/xyz/.local/bin/mvt')
-rwxr-xr-x | home/xyz/.local/bin/mvt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/home/xyz/.local/bin/mvt b/home/xyz/.local/bin/mvt new file mode 100755 index 00000000..716c0eaa --- /dev/null +++ b/home/xyz/.local/bin/mvt @@ -0,0 +1,8 @@ +#!/bin/sh +# emulate mv -t, for use with `find ... -exec mvt ... '{}' \+`, more POSIX compliant +# example: mvt ./dir/ -i -- file1 file2 + +dist="$1" +shift +# not use -- here, use -- when use mvt, so I can specify -f or -i switch before -- when use mvt +mv "$@" "$dist" |