Last active
February 28, 2021 16:02
-
-
Save bkyle/2fee402edd58f07360ea56d4be3b931b to your computer and use it in GitHub Desktop.
Functions for the bash shell to support johnny.decimal indexes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JOHNNY_ROOT="..." | |
function jfind() { | |
(cd "${JOHNNY_ROOT}"; find [1234567890][1234567890]* $@) | |
} | |
function jls() { | |
(cd "${JOHNNY_ROOT}"; ls -1d [1234567890][1234567890]-*/[1234567890][1234567890]\ */[1234567890][1234567890].[1234567890][1234567890]*) | |
} | |
function jcd() { | |
pushd "${JOHNNY_ROOT}"/*/*/${1}* | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment