Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: ack 2.0 has been released

by tobyink (Abbot)
on Apr 29, 2013 at 14:04 UTC ( #1031214=note: print w/ replies, xml ) Need Help??


in reply to ack 2.0 has been released

For the last week or so I've been experimenting by setting a shell alias "grep" to point to ack 2.0. And so far the results have been good; or at least, I've not been annoyed enough to switch back.

My .ackrc contains:

--no-recurse

... so I get a grep-like non-recursive behaviour by default; and if I need recursion I just supply the -r option on the command line (just like I did with grep).

The other grep options I frequently use (-h/-H, -v, -i and -c) all Just Work™.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name


Comment on Re: ack 2.0 has been released
Select or Download Code
Re^2: ack 2.0 has been released
by petdance (Parson) on Apr 29, 2013 at 14:17 UTC

    I've been experimenting by setting a shell alias "grep" to point to ack 2.0.

    I suggest that you not do that. ack and grep are different tools. ack is not a replacement for grep. If you need to use grep, then use grep. If you need to use ack, then use ack.

    xoxo,
    Andy

      That's precisely why I set up the alias. For years, when I've needed to use something like ack, I've typed "grep" (muscle memory). The alias ensures that now, when I need to use ack, I get ack.

      It's not like I've deleted /bin/grep and installed a symlink to ack; other users, shell scripts, etc, can still use the real grep.

      package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031214]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2014-08-21 05:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (127 votes), past polls