3 ms·
How does using powershell in Linux compare to bash? I imagine one has strengths over the other
by fractal618 7y ago
How does using powershell in Linux compare to bash? I imagine one has strengths over the other
- alkonaut 7y agoWhen 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.