dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit bbe1acb1788fb7b53fcc970a7709d30b2c23dfba
parent cca884b02e2cbf5634d6228f8fd5628d365e5bf9
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sat,  9 Mar 2019 15:27:10 -0500

rotdir

Diffstat:
A.scripts/tools/rotdir | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/.scripts/tools/rotdir b/.scripts/tools/rotdir @@ -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; }"