LT: i can't believe anyone thinks bash is Good
@cac I think bash is good, change my mind.
@Wolf480pl tbh just look at the syntax for an if statement as a microcosm of bash. It seems like arbitrary spaces/newlines, combined with arcane flags for different conditions, which just means everything is unintuitive, and if I go one day without using it I'll need to go google where the spaces go and which flags do what
@cac umm... no?
if <command>; then <commands...>; else <commands...>; fi
simple as that.
I guess your problem is more with the syntax of the `test` command. (a.k.a. `[`).
@cac Anyway, what I love about bash is its use for ad-hoc oneliners.
for i in `seq 10`; do ssh "worker$i" reboot; done
or piping something to awk to more awk to xargs.
This lets you quickly automate things which would you wouldn't normally automate, because automating them in a regular programming language would take more time than doing it by hand.
@cac Also, bash is pretty great for rapid prototyping of data analysis and data processing.
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!