Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I am looking for a command line tool like grep to perform some regex searching over files. Grep seems pretty limited with its meta-characters and wanted a tool that ...
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    1

    Command Line Regex tool

    Hello,

    I am looking for a command line tool like grep to perform some regex searching over files. Grep seems pretty limited with its meta-characters and wanted a tool that had a full regex implementation. Much like Perl.

    Just so you know I have actually solved my particular issue by piping a few grep commands together, but this being Linux, I am sure there must be a better solution.

    So if someone with more knowledge than me has any comments regarding a grep like tool with good regex support I would be really appreciative.

    Thanks,

    Gareth.

  2. #2
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.
    Code:
           -P, --perl-regexp
                  Interpret PATTERN as a Perl regular expression.
    
    -- excerpt from man grep, (GNU grep) 2.5.1
    cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

Posting Permissions

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