scripts moved to ~/.local/bin

This commit is contained in:
Luke Smith committed 2019-05-18 00:07:32 -04:00
1 parent 18e001db07
commit 54920103c2
78 files changed
+13 -13

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
[ -z "$1" ] && echo "usage: rotdir regex 2>&1" && exit 1
base="$(basename $1)"
ls "$PWD" | awk "BEGIN { lines = \"\"; m = 0; } /^$base$/ { m = 1; } { if (!m) { if (lines) { lines = lines\"\n\"; } lines = lines\"\"\$0; } else { print \$0; } } END { print lines; }"