3 ms·
If you need them, Windows also has most of those tools somehow replicated in Powershell. For instance, the initial example can be replicated with: Get-Content
by zeidrich 13y ago
If you need them, Windows also has most of those tools somehow replicated in Powershell. For instance, the initial example can be replicated with:
Get-Content .\data.csv | %{[int]$total+=$_.Split('|')[3]; } ; Write-Host "$total"
- dredmorbius 13y agoOr you can actually use the Linux commands by installing Cygwin. Pretty much my first conscious action when I wake up stranded on a desert Windows system.
- pseut 13y agoWhy Cygwin instead of MinGW? (I can't remember why I prefer MinGW, but at some point I had a reason).
- username42 13y agoVirtualbox ubuntu.
- dredmorbius 13y agoI could care less which you choose so long as you're getting a proper Linux toolset. Powershell is a skill I don't have yet which carries over to ... precisely one declining technical dinosaur (with a penchant for expiring its skillsets). The Linux toolbox is a set of skills I embarked on learning over a quarter-century ago, most of which goes back another decade or further (the 'k' in 'awk' comes from Brian Kernighan, one of Unix's creators). And while some old utilities are retired and new ones replace them (telnet / rsh for ssh, sccs/rcs for git), much of the core has remained surprisingly stable over time. The main difference between MinGW and Cygwin appears to be how Windows-native they are considered, which for my own purposes has been an entirely irrelevant distinction, though if you're building applications based off of the tools might matter to you. http://www.mingw.org/node/21 http://www.mingw.org/node/21