egrep-a-licious

My AIX box doesn’t have GNU grep, so I use egrep on occasion. One liner to find Foo or Bar at the beginning of a line:
egrep ^'(Foo|Bar)' some_file

This entry was posted in computers/programming. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *