Re:How to Make Money Using Grep, Sed and Awk
by xelxebar on Wednesday October 11, 2017 @10:11AM
(#15449889)
There is a lot of historical arcana baked into the command line and bash, but I've found it worth learning like any other language.
Anyway, just for future reference you can use bash's `help` command to get documentation about builtins. In the case of conditionals, we want to loo at `test`:
$ help test
I find this a lot easier than wading through the bash man page.
Re:How to Make Money Using Grep, Sed and Awk
by tslug on Wednesday October 11, 2017 @02:00PM
(#15451740)
Holy crap, xelxebar. Thank you! This is a game-changer. I've been wading through the bash man pages like a fool.
Re:How to Make Money Using Grep, Sed and Awk
by yjftsjthsd-h on Wednesday October 11, 2017 @07:00AM
(#15448734)
Thanks for pointing to Begins!
I suspect some of this is just a difference in background or culture; shell conditionals look completely obvious and intuitive to me, and I'm pretty sure my team can handle shell better than python.
Re:How to Make Money Using Grep, Sed and Awk
by mcintyre1994 on Wednesday October 11, 2017 @06:48AM
(#15448676)
Begins looks awesome, thanks for sharing! :)
The other thing I've noticed amongst peers is that I'm usually the only one (or one of a limited few) that remotely understand the shell script too. So I'd serve the team better writing it with Python. YMMV with that of course.
[1] http://begins.readthedocs.io/en/latest/