Linux “Grep” && Windows “Findstr”

1. Filter a result 1.1 Classic example to filter a listing result. #Linux $ ls -ls | grep mkyong #Windows c:\> dir | findstr mkyong 1.2 Add ignore case, and filter the listing result with multiple strings. #Linux – Need ‘-E’ option and Uses “|” to separate multiple search strings. $ ls -ls | grep -iE “mkyong|music” #Windows – Use spaces to separate multiple search strings c:\> dir | findstr -i “mkyong music” 2. Search…

Read More