tangetools/rn/rn
2015-02-08 20:54:41 +01:00

20 lines
424 B
Bash
Executable file

#!/bin/bash
mkdir ~/.rm 2>/dev/null
if mv "$@" ~/.rm ; then
# OK
true
else
mkdir -p ~/.rm/{1..10}
mv "$@" ~/.rm/1 2>/dev/null ||
mv "$@" ~/.rm/2 2>/dev/null ||
mv "$@" ~/.rm/3 2>/dev/null ||
mv "$@" ~/.rm/4 2>/dev/null ||
mv "$@" ~/.rm/5 2>/dev/null ||
mv "$@" ~/.rm/6 2>/dev/null ||
mv "$@" ~/.rm/7 2>/dev/null ||
mv "$@" ~/.rm/8 2>/dev/null ||
mv "$@" ~/.rm/9 2>/dev/null ||
mv "$@" ~/.rm/10
fi