Last active
July 9, 2022 23:16
Revisions
-
sleeyax revised this gist
Jul 9, 2022 . 1 changed file with 0 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +0,0 @@ -
sleeyax revised this gist
Jul 9, 2022 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ Installation instructions (globally, any user): ``` $ curl https://gist.githubusercontent.com/sleeyax/788f2f4790b02b5e4275b199be637b2f/raw/8edce505a7153712cc0edd67a3999723ddfc1549/lcs.sh -o lcs $ sudo chmod +x lcs $ sudo mv lcs /usr/local/bin ``` Restart your shell or terminal to use it. -
sleeyax created this gist
Jul 9, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/usr/bin/sh if ! [ -z "$1" ] then echo "$1" | tr '[:upper:]' '[:lower:]' else echo "Usage: lcs <text>" echo 'Example: lcs "Foo Bar BAZ"' echo "Output: foo bar baz" fi