Re:Writing Safe Shell Scripts (2019)
by dahart on Saturday February 01, 2020 @06:46PM
(#22214081)
I love python, and half my ‘shell’ scripts are python, but the mere fact that I have to import something to exec something or read a file means that bash is easier to build and test one line at a time. And good bash pipelined one-liners are a reason I’ll never write all of my scripts in python. It’d be hard for me to calculate how often I use constructs like ‘grep | sort | uniq | cut’. That takes a lot of python code.
[ Parent
| on HN ]
There are no comments on this comment yet.