Grep Questions
1. Search for the given string in a single file 2. Checking for the given string in multiple files. 3. Case insensitive search using grep -i 5. Checking for full words, not for sub-strings using grep -w 6. Displaying lines before/after/around the match using grep -A, -B and -C
6.1 Display N lines after match 6.2 Display N lines before match 6.3 Display N lines around match
7. Highlighting the search using GREP_OPTIONS 8. Searching in all files recursively using grep -r 9. Invert match using grep -v 10. display the lines which does not matches all the given pattern. 11. Countin
↧