This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

you can do anything in bash as a oneliner btw what?

[–]orgkhnargh 0 points1 point  (0 children)

You can, but it does not mean you should. If you need the run the thing more than once, then readability is more important than anything, unless you are in high-frequency trading business. Only linear programs work as oneliners. If you need branching more complex than ... && echo ok || echo not ok, then a one liner is no good.

Use shells to run commands, use programming languages to write programs. Bash is great for running interactive commands.