News for hackers. Stuff that matters.
Re:PowerShell vs. Unix shells by gaius on Friday July 13, 2012 @05:19AM (#4238995)
When writing shell script, try to develop an awareness of how much you use sed, awk, tr, `` and so on to munge the output from one command into the format or value you want for the next. If it's a lot then something like PowerShell (or equiv on Unix) may be what you're after.
Re:PowerShell vs. Unix shells by planckscnst on Friday July 13, 2012 @08:29AM (#4239507)
I used to do that a lot, but now, I very much try to avoid those for modifying command output - at least for scripts: it can be quite fragile. Usually utilities have options to output exactly what you need instead, or you can get the information another way (another utility, something in /proc, etc).