This is a small post on how to view lines which contain . or ; at the end  of each line in a file. This command can be even consider for searching lines for different end char too.

grep ‘[.;]$’ filename
or
grep -E ‘(.|;)$’ filename

The following two tabs change content below.
Mr Surendra Anne is from Vijayawada, Andhra Pradesh, India. He is a Linux/Open source supporter who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. He works as Devops Engineer with Taggle systems, an IOT automatic water metering company, Sydney . You can contact him at surendra (@) linuxnix dot com.