- use jq to count a nested array "a.b.c.d"
- find and delete empty folders using `find`
- find and replace text using sed/awk
I found that using ChatGPT for these purposes boosted my productivity tremendously. - use jq to count a nested array "a.b.c.d"
- find and delete empty folders using `find`
- find and replace text using sed/awk
I found that using ChatGPT for these purposes boosted my productivity tremendously.Just an example, I saw someone come up with a great awk line to change some text in a nested directory. He then pasted into bash. Only once the server went down did anybody realize that he forgot to cd into the proper directory and he wiped out not only the server config but also all the user-uploaded data as well.
The server config was not version controlled and the user data had not been backed up in almost a week.
I'm using those on a weekly basis now, because I don't have to memorize details of entirely new programming languages in order to apply them to small problems.
Smaller languages that I never took the time to learn are no longer something I avoid. I even use AppleScript now! https://til.simonwillison.net/gpt3/chatgpt-applescript