Questions tagged [ack]

0 votes
1 replies
how to exclude some of the matches from grep?
I am using grep to printout the matching lines from a very large file from which i got hundreds of matches, some of them are not interesting i wa...
asked 4 months ago
0 votes
0 replies
In ack, can I define a type that is restricted by both extension and first line (two filtertypes)?
If I understand correctly (from Defining your own types in ack --man), when I use --type-set in .ackrc (or at the command line) I can only use on...
asked 1 month ago
1 votes
1 replies
ack-grep throws <Invalid filter specification “tags”>
When I search with ack-grep I get this error, $ ack-grep SearchString Invalid filter specification "tags" at /usr/bin/ack-grep line 126. main::_...
ack
asked 4 months ago
0 votes
1 replies
Python Socket TCP receiver does not ACK correctly NoOS LWIP sender
I am trying to establish TCP communication between my PC and LWIP MCU. LWIP UDP and ICMP seems that work correctly. Note that LWIP works as TCP s...
asked 2 months ago
2 votes
1 replies
ack fails in cronjob but runs fine from commandline
I'm using ack as part of a bash script to build a list of MP4 files from a mysqldump. The dump file is about 15mb. Here's my line: ack -o "http...
asked 2 months ago
0 votes
1 replies
How to make ack stop after the first match?
I am trying to look for patterns in a file. The looks like this: aaa; bbb; If I try the following it does not stop: cat test | tr -d '\n' | a...
asked 1 month ago
2 votes
1 replies
Reliably checking wget log for errors using grep or ack
In a bash file, I have logfileA.txt that contains output from wget that I'd like to run grep on to check for any instances of the words "error" o...
asked 3 weeks ago
1 votes
2 replies
Can ack/ag/grep print function name?
Is it possible to print the function or class name in which a keyword occurs when using ack or ag? This is something I have highly desired for qu...
asked 3 weeks ago
0 votes
1 replies
Why typing same command in macOS bash gives divergent result as in jenkins bash script
I'm setting up jenkins freestyle job with bash script build step with ack command, Why I am not getting same result as from command bash on macOS...
asked 2 weeks ago
17 votes
1 replies
grep/ack -o with characters of context (not lines)
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 r...
asked 7 years ago
4 votes
3 replies
Why do I get extra, unexpected results with my ack regex?
I'm finally learning regexps and training with ack. I believe this uses Perl regexp. I want to match all lines where the first non-blank charact...
asked 9 years ago
8 votes
2 replies
grep: repetition-operator operand invalid
I have this regular express (?<=heads\/)(.*?)(?=\n) and you can see it working here http://regexr.com?347dm I need this regex to work in the...
asked 6 years ago