Grep
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
It depends on your linux/grep, how you have to build your regular expressions.
Search for letter/digit combinations of a certain length
grep -oe '[[:alnum:]]\{17\}' my_data.txt
E-Mail addresses
grep -E -o "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b" rejectlog* | sort -u