summaryrefslogtreecommitdiffstats
path: root/.local/bin/tools/rotdir
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-05-19 20:05:14 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-05-19 20:05:14 -0400
commitc6e69e96421ebf192eb6de537324e269e7bfda78 (patch)
tree47d34a5ff72d65be9a3e2c6aeb55a88da3a6fbd2 /.local/bin/tools/rotdir
parentbf8c6b1e20f42a7725d8d919830fdb274596b20f (diff)
downloadeibhear-c6e69e96421ebf192eb6de537324e269e7bfda78.tar.gz
eibhear-c6e69e96421ebf192eb6de537324e269e7bfda78.tar.zst
eibhear-c6e69e96421ebf192eb6de537324e269e7bfda78.zip
massive cleanup
Diffstat (limited to '.local/bin/tools/rotdir')
-rwxr-xr-x.local/bin/tools/rotdir4
1 files changed, 0 insertions, 4 deletions
diff --git a/.local/bin/tools/rotdir b/.local/bin/tools/rotdir
deleted file mode 100755
index e7103db..0000000
--- a/.local/bin/tools/rotdir
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/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; }"