Useful grep command for developers

grep is a super useful command for the developers who prefer to use terminal to find things. The command grep stands for global regular expression point. This grep command is used to find a match of the supplied pattern.

Following are some really useful grep command:

Find the number of matches of the supplied pattern
$ grep -c '<pattern>' <filename>.xml
Share