mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2025-10-07 07:22:36 +02:00
rotdir
This commit is contained in:
parent
cca884b02e
commit
bbe1acb178
3
.scripts/tools/rotdir
Executable file
3
.scripts/tools/rotdir
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
# Give this script a filename argument. Returns PWD rotated with that file first.
|
||||
ls "$PWD" | awk "BEGIN { lines = \"\"; m = 0; } /^$1$/ { m = 1; } { if (!m) { if (lines) { lines = lines\"\n\"; } lines = lines\"\"\$0; } else { print \$0; } } END { print lines; }"
|
||||
Loading…
x
Reference in New Issue
Block a user