small pixel drawing of a pufferfish j3s.sh

*
Jes Olson j3s@c3f.net
Fri, 10 Mar 2023 23:52:35 -0800
commit

2330856a0415f691c7bae7630122d31658293533

parent

282f020ec67318d8e8380197ed0d8ff56ab9f603

1 files changed, 18 insertions(+), 24 deletions(-)

jump to
M thought/write-posix-shell.htmlthought/write-posix-shell.html

@@ -227,36 +227,30 @@

when the problem you're solving involves linux, text processing, or managing files, consider shell. - here are a bunch of examples of great little shell programs: + here are a bunch of ideas that shell would be a great + fit for: - - mass rename files and make them consistent - (*.erb.html -> *.html) - + - rename a bunch of files - make a take-my-estrogen alarm clock (perhaps your laptop would beep) - - - run a command when any .go files change - - - find all files that end in .kfx and delete them forever - - - run commands on a bunch of remote systems at once - + - run a command when a certain file changes + - delete all files that end in .kfx + - execute a series of commands on many remote systems - count the number of occurrences of the word "fuck" - across your projects, and sort the results - - - make a shell program that backs your raspberry pi up - to an external hard drive - + across your projects, then sort the results + - back up your raspberry pi up to an external hard drive - submit JSON data to an endpoint on a schedule + - create a virtual machine with a certain name + - update a personal website whenever its git repo changes + > this is how i deploy j3s.sh! + one 2-line cronjob, + one 10-line shell script, + 2 years with 99.999% uptime + - find rss feed endpoints and print any that exist + > my friend begriffs[3] and i wrote shell that does this! - - check a git repo for updates and then run commands - (this is how i deploy j3s.sh!) - - - attempt to predict rss feed endpoints and print any that exist - (my friend begriffs[3] and i wrote shell that does this) - - all of the above examples would take between 10 seconds and - 5 minutes to implement in the hands of an experienced + most of the above examples would take between 10 seconds and + 2 minutes to implement in the hands of an experienced shell person. that person could be you!!