10 lines
191 B
Plaintext
10 lines
191 B
Plaintext
|
#!/bin/sh
|
||
|
# Creates the last arg as directory and moves everything else into it
|
||
|
|
||
|
for last; do true; done
|
||
|
|
||
|
mkdir -p $(case "$last" in (*/) echo "$last";; (*) dirname "$last";; esac)
|
||
|
mv "$@"
|
||
|
|
||
|
|