3 ms·
When you are doing things that operate on unstructured text and files you will probably get a more concise script with bash most of the time. As soon as you do
by alkonaut 7y ago
When you are doing things that operate on unstructured text and files you will probably get a more concise script with bash most of the time. As soon as you do anything beyond that with structured data or complex processing (e.g you fetch a Json from a web api, filter some properties in it with a regex, save the result as xml, send the xml to a program, parse the output using some complex logic,...) then the powershell is way more powerful.
You might say it’s more a tool that shines in the cases where you’d already give up on bash and use python or something else instead, because you need some libraries, some structured error handling etc.