Andy Lester

Results 496 comments of Andy Lester

From @n1vux: document use of lookbehind and other useful Perl Extended RE idioms in a separate doc section (have some a few bits now but scattered)

The example I always use in presentations: Find all the headers used in your C programs and dedupe them: ack '#include\s+' --cc --output='$1' | sort -u

Pull out examples from the main ::Manual, especially the "TIPS" section.

Searching for a method call: ack -- '->method' or ack '[-]>method'

Search for all the files that mention `Sys::Hostname` but don't match `hostname`. Add `-I` because I have `--smart-case` on in my .ackrc. ack -l Sys::Hostname | ack -x -L -I...

Mention `dirty` and/or `git diff --name-only`.

See all the .vim files in your ~/.vim directory, except in the bundle/ directory. ack -f --vim ~/.vim --ignore-dir=bundle

`ack -g tax --ruby` Finds all the ruby files that match `/tax/`. `vim $(ack -l taxes)` open all the files that have `taxes` in them. `ack -f --perltest | xargs...

We could have entire section just about `ack -f` and `ack -g`.