The grep filter searches a file for a particular pattern of characters, and displays all lines that contain that. grep '' find lines containing any uppercase letter If the part is omitted, it is considered as an empty string, and the matched pattern is deleted. Here’s the -A option, which gets lines after the match.Grep multiple patterns in a single line txt shows as below: Aug 5 02:43:12 zion kernel: [ 0.