Regular expressions grep
Sometimes it is necessary to use regular expressions in various scripts. Here are some useful regex patterns that are also used with the standard grep. A couple of grep options: -E, --extended-regexp PATTERN - interpret PATTERN as an extended regular expression; -o, --only-matching - output only the matching part...