ack Questions
2
Solved
I have a problem with using ack-grep with a negative look ahead.
I am running this command:
ack-grep "paypal_responded(?!_at)"
but I am getting the error:
bash: !_at: event not found
I have ...
Gutter asked 5/12, 2011 at 12:3
1
Solved
I'm trying to find a way to
grep -o "somepattern"
which gives me something like
html/file.js
2:somepattern
5:somepattern
but what would be really nice is to have a few characters (maybe 20) be...
1
Solved
I'm using Vim + Ack.Vim and am flummoxed on how to ignore hits within Jquery files. I've got an .ackrc file defined (see below), but I'm stabbing in the dark.
--type-add=ruby=.haml,.rake,.rsel,.bu...
1
Solved
I'd like to get my .ackrc configured so ack doesn't look inside my test/coverage folder. So far I've ended up with this :
--ignore-dir=coverage
This works, but it doesn't feel quite as right as :...
Raving asked 14/10, 2011 at 9:42
4
Solved
I'm sure I'm misunderstanding something about ack's file/directory ignore defaults, but perhaps somebody could shed some light on this for me:
mbuck$ grep logout -R app/views/
Binary file app/view...
1
Solved
I'm not sure what it's for, but the code I'm working on has a bunch of folders called "save.d," it looks like they're used for some sort of version control (we also have .svn folders).
How can I u...
Mikelmikell asked 20/9, 2011 at 17:54
1
Solved
I am trying to use ack-is-better-than-grep (ack) with regular expressions to find lines and snippets in my code repository. My understanding is that ack uses Perl-derivative regular expressions, is...
1
Solved
Is it possible (and how) to chain patterns with ack (ack-grep on some distributions of Linux) like I'm used to with grep?
e.g.
grep "foo" somefile.c | grep -v "bar"
...to match all lines with ...
1
Solved
I would like to find lines in files that include two words, word_1 and word_2 in order, such as in Line A below, but not as in Line B or Line C:
Line A: ... word_1 .... word_2 ....
Line B: ... wo...
1
Solved
How to configure ack (sometimes distributed as ack-grep) to always include .conf files into search?
2
Solved
I want to look for the string "methodname(", but I am unable to escape the "(". How can I get
grep methodname( *
or
ack-grep methodname( *
to work?
1
Solved
Suppose I have a foo.txt file with the following content:
[2010-11-13 12:00:02,656]
[2010-11-13 12:00:02,701]
[2010-11-13 12:00:02,902]
When I ack for the date portion with the following, it wor...
2
Solved
in ack's home page, there lists a lot of file type, but without aspx, is it possible to let ack support it?
Rawdan asked 6/10, 2010 at 8:19
© 2022 - 2024 — McMap. All rights reserved.