For all the people who are sysadmins and people who use Linux/Gnu in their work. Do you use shell scripts/find it then useful? Is it worth it to learn and practice flow control statements with test commands and what not?
>>59795445
No anything longer than one line that won't fit in an alias should be done in Python.
>>59795448
I'm in lvl 1 linux/gnu and towards the end of the semester they're putting a decent focus on shell scripting. To me it seems not so useful unless you're writting big pipelines over and over again with no that many changing factors.
>>59795445
>Do you use shell scripts/find it then useful?
Yes, more useful than you think. Anything that'll help is worth learning about.
I haven't written much shell scripts, but they seem ineffective. Anything that is non-trivial will be probably better if you don't write it as a shell script.
I didn't even mention that utilities that you depend on might not work the exact same way on every system, and this adds to the complexity. Even shebangs aren't standard, and then there are small differences in core utilities.
>>59795445
Yes. It's insanely useful.
People telling otherwise don't understand that shell script is not really meant to be a genera purpose language. It's a super glue for unix utils.
The language itself is very small and you can learn everything you would need in an afternoon.
I recommend you learn at least the basics of awk and sed.
>>59797678
This. Shell scripts are meant to be used for simple glue code.