I learned to write scripts on Windows Powershell and got spoiled by everything being an object so when I started writing bash scripts I think 90% of the work is trying to parse the raw text output of commands with things like awk or sed.
Yeah but I keep trying to pipe the output back into the original file which ends up empty due to how pipe and redirect interact.
I know there must be a grown-up way to do it but I inevitably resort to writing it to filename2 and then running mv filename2 filename.
When I first learned Unix (and then Linux) I just went through /usr/bin and looked at the man page for everything.
Then I browsed through the gnu info pages for bash.
There’s no real alternative to RTFM.
I’m still sore that column -nts,
doesn’t work anymore. My mnemonic for remembering it was “unts, unts, unts” like a dance club beat.
Actually looking at the usage text I’m not sure how the -n
flag ever worked for me… Maybe I’m misremembering.
This was a new one for me and I’ve been playing with linux for years. Also really enjoyed her video style so delved into some others.
Thanks for sharing!