Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Elegant Bash Conditionals.
Explicit if [].. is more readable.
Chaining commands with && is better just accomplished by running `set -e` which you should be doing at the start of your script anyway.
And of course both of these are getting pretty close to the "if you have to Google what this bash syntax does, just write your script in Python" rule.
There are no comments on this comment yet.
Explicit if [].. is more readable.
Chaining commands with && is better just accomplished by running `set -e` which you should be doing at the start of your script anyway.
And of course both of these are getting pretty close to the "if you have to Google what this bash syntax does, just write your script in Python" rule.