Cmd grep equivalent in windows




















PowerShell is more powerful and user friendly compared to the raw shell in windows. In the below example, the grep command searches for the string Amal in the file userlist. The option -i performs case insensitive search inside the file. Example is given below. In the below examples, the findstr will do an exact match.

More details of findstr command can be found in this official documentation. We have another command in powershell which is Select-String. You are commenting using your WordPress. You are commenting using your Google account. You are commenting using your Twitter account.

You are commenting using your Facebook account. November 8, at am. Hi, thank you for sharing this handy piece of information! Icechen1 says:. August 21, at pm. Hehe, thanks for the share! As a old unix user, this can come in handy! Danish says:. Thank you for sharing the info. Indeed Find is grep like but alas not grep with grep, tr, cut it seems.

Cindy z says:. Nihar says: Reply April 17, at am. BigJoe says: Reply December 17, at pm. Sky says: Reply September 1, at pm. Lance says: Reply November 25, at am. Dangvalid says: Reply December 31, at pm. Amri says: Reply July 18, at am. Arman says: Reply January 9, at pm. Regex says: Reply January 11, at pm. Leave a Reply Cancel reply.



0コメント