The Grep Command Tutorial With Examples For Beginners

grep command

3 Responses

  1. Matt says:

    You might want to check over your range syntax for matching the H and h characters.

    egrep ‘^([l-u]|[L-U])’ file.txt will not find the letter ‘h’ or ‘H’. Just letting you know so you can correct it.

  2. Matt says:

    Also, .n will match any character that precedes the letter ‘n’

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.