In windows I'm measuring the different times between launching a command from within cygwin and launching it from powershell, and I get huge time differences:
Trying to count the lines in a 2.7GB file using wc -l
from within cygwin takes 5 secons, but when done from powershell Get-Content file.txt|Measure-Object -line
takes EONS, I just got bored after a few minutes and canceled the command.
EDIT: To be fair I tried cat file|wc -l
and the result takes 10 seconds nowhere near the (minutes/hours) times on powershell.
Am I doing something wrong or is it just that powershell is useless?