'Grep is not recognized as command in windows [duplicate]
I'm trying to convert a file into txt and sort it. I'm using wget, that I've already installed
wget 'https://bitkeys.work/btc_balance_sorted.csv'
cut -d, -f 1 btc_balance_sorted.csv | grep -v address > public_addresses_sorted.txt
When I enter the above command, it says that grep isn't recognized as a command.
I'm using the Windows command prompt.
Solution 1:[1]
You can use the cygwin- it's open-source and will let you use grep.
The cygwin package contains a dll - cygwin.dll and a bunch of Linux utilities compiled for windows, (e.g. cut.exe, grep.exe, etc) that can be used on the cmd prompt or in a batch file.
Of course, you will need to add C:\cygwin\bin to the PATH variable.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | anishsane |
