Results 1 to 3 of 3
  1. #1
    Join Date
    May 2004
    Posts
    11

    Unanswered: regular expression

    Hi members of forum,

    I am currently studying on the topics of unix commands abt regexp,

    have a question in an exercise that I would like to seek help:


    grep 'pattern' /usr/share/dict/words

    All words containing 'ae', abd beginning with a lower case letter. and not beginning with 'ae' and not ending with 'ae'

    many tks.

    daryl

  2. #2
    Join Date
    May 2004
    Location
    Barcelona, Spain
    Posts
    54
    grep -E "[a-z]ae[a-zA-Z]" file should do the work

    Cheers

    Iñaki

  3. #3
    Join Date
    May 2004
    Posts
    11
    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •