voidrice/.scripts/tools/rotdir
Luke Smith 08a9db0554 style
2019-03-21 15:02:51 -04:00

8 lines
123 B
Bash
Executable file

#!/bin/sh
[ -z "$1" ] && echo "usage: rotdir regex 2>&1" && exit 1
ed -s <<EOF
r !find "$PWD" -maxdepth 1
g/$1/m0
,p
Q
EOF