dotfiles/.local/bin/scripts/mvk
2021-01-23 19:55:22 +01:00

5 lines
231 B
Bash
Executable file

#!/bin/sh
# Creates the last arg as directory (or its parent if not ending in a slash) and moves everything else into it
for last; do true; done
mkdir -p $(case "$last" in (*/) echo "$last";; (*) dirname "$last";; esac)
mv -n "$@"