UNIX shell tools

Discussion in 'Perl Misc' started by Ulli Horlacher, Nov 30, 2013.

  1. I have written some UNIX shell tools which substitute or extend the
    classical tools:

    http://fex.rus.uni-stuttgart.de/fstools/

    For example fpg is a grep which accepts perl regexp.
    As a perl programmer, I am always confused which regexp syntax other
    programs have. I want perl regexps everywhere :)

    My own most used tools are:

    l list files
    clp command line perl
    fpg perl grep
    zz generic clipboard
    xx generic internet clipboard

    Maybe you are interested.

    --
    Ullrich Horlacher Informationssysteme und Serverbetrieb
    Rechenzentrum IZUS/TIK E-Mail: -stuttgart.de
    Universitaet Stuttgart Tel: ++49-711-68565868
    Allmandring 30a Fax: ++49-711-682357
    70550 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/
     
    Ulli Horlacher, Nov 30, 2013
    #1
    1. Advertising

  2. Ulli Horlacher

    Dr.Ruud Guest

    On 2013-11-30 10:19, Ulli Horlacher wrote:

    > I have written some UNIX shell tools which substitute or extend the
    > classical tools:
    >
    > http://fex.rus.uni-stuttgart.de/fstools/
    >
    > For example fpg is a grep which accepts perl regexp.
    > As a perl programmer, I am always confused which regexp syntax other
    > programs have. I want perl regexps everywhere :)


    Many greps support -P (for PCRE), but since 'ack' I hardly ever use grep
    anymore.

    For example, to find issues in a full code base:

    ack -a '^\s*return [^!(]\S* or\b'

    which with grep would (be slow and) look like:

    grep -rP '^\s*return [^!(]\S* or\b' .

    - - - - - - - - - - - - - - - - - - - - - - - - - - -

    To install ack:

    cpan App::Ack

    http://beyondgrep.com/install/

    - - - - - - - - - - - - - - - - - - - - - - - - - - -

    For speed, I also use 'git grep' a lot.

    git grep -P '^\s*return [^!(]\S* or\b'

    https://www.google.co.uk/search?q="git grep"

    --
    Ruud
     
    Dr.Ruud, Nov 30, 2013
    #2
    1. Advertising

  3. Ulli Horlacher

    Damien Wyart Guest

    * "Dr.Ruud" <> in comp.lang.perl.misc:
    > Many greps support -P (for PCRE), but since 'ack' I hardly ever use
    > grep anymore.


    There is also ag, which is often noticeably faster than ack:
    https://github.com/ggreer/the_silver_searcher

    --
    DW
     
    Damien Wyart, Nov 30, 2013
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    5,838
    Jonathan Bromley
    Feb 18, 2005
  2. Christian Heimes
    Replies:
    0
    Views:
    621
    Christian Heimes
    Feb 27, 2008
  3. Gerardo Herzig
    Replies:
    1
    Views:
    1,127
    Philipp Pagel
    Feb 27, 2008
  4. D'Arcy J.M. Cain
    Replies:
    0
    Views:
    887
    D'Arcy J.M. Cain
    Feb 27, 2008
  5. Samuel A. Falvo II
    Replies:
    0
    Views:
    504
    Samuel A. Falvo II
    Oct 8, 2008
Loading...

Share This Page