2020-12-23 12:43:15 +00:00
|
|
|
#!/bin/sh
|
2020-12-27 12:54:06 +00:00
|
|
|
# Creates the last arg as directory (or its parent if not ending in a slash) and moves everything else into it
|
2020-12-23 12:43:15 +00:00
|
|
|
for last; do true; done
|
|
|
|
mkdir -p $(case "$last" in (*/) echo "$last";; (*) dirname "$last";; esac)
|
2020-12-27 12:54:06 +00:00
|
|
|
mv -n "$@"
|