I have been working on my scripts for user/group permissions today. This idea has been on my back burner for awhile. I’m sure others have done this before. I just haven’t encountered them yet.

I was thinking of just trying to find the flags where they start a line and put everything in a string array until the next line that starts with a flag. Then I would just call the script with the command, a loop would match the flags and print the matches.

  • bitwolf@lemmy.one
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    I like to use cht.sh you it maps it’s subdirectories to commands and you just curl it.

    Eg:

    curl cht.sh/cat curl cht.sh/grep