TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

I Dislike Shell Scripting

5 pointsby Nalesover 2 years ago

3 comments

PaulHouleover 2 years ago
I like bash for programs that go in a straight line from bottom to top and where you don’t need to think about quoting so much. If there are loops, conditionals, and such, you are better off with a real language. If you stick to the standard library and don’t mess around with pip, Python is fine for simple scripts.<p>(I love writing bash scripts that do loops by writing an awk 1-liner that you pipe into bash, I don’t have to read the awk manual to do this, whereas control structures in bash are so far from the mainstream that I have to look them up in the manual every time I need to use them… you really aren’t supposed to do this because script injection is possible. The shell scripting mafia says, “use xargs” but that involves reading an awful man page for two hours so you can do something that takes two minutes in a language not so far from the mainstram.)
bitfieldover 2 years ago
Try <a href="https:&#x2F;&#x2F;bitfieldconsulting.com&#x2F;golang&#x2F;scripting" rel="nofollow">https:&#x2F;&#x2F;bitfieldconsulting.com&#x2F;golang&#x2F;scripting</a> instead?
评论 #34807786 未加载
metadatover 2 years ago
Nales: FYI the site is not responding, article not currently accessible.
评论 #34811535 未加载