Questions tagged [ack]

ack is a tool like grep, designed for programmers with large trees of heterogeneous source code.

ack is a tool like grep, designed for programmers with large trees of heterogeneous source code. http://beyondgrep.com

262 questions
0
votes
1 answer

What's the difference among the DeliveryStates for the Vert.x AMQP Client

As a AmqpReceiver, what's the difference among the different DeliveryStates for a received message. Runing a ReceiverTest for test, see https://github.com/vert-x3/vertx-amqp-client/blob/master/src/test/java/io/vertx/amqp/ReceiverTest.java. It always…
Heromyth
  • 3
  • 1
0
votes
0 answers

TCP and Wireshark: Two consecutive TCP packets instead of having an ACK for each of them

We have an application (client and server), deployed in two different environments (staging and production). Both environments are theoretically configured exactly... The client is sending data in a POST request, and the server is returning a 200 OK…
0
votes
4 answers

Vim Ack, Ag: Search in directory of file that you are editing in

I want to be able to search files that only reside in the directory of the file that I opened inside vim. The documentary of Ack says: :Ack[!] [options] {pattern n} [{directory}] *:Ack* Search recursively in…
Flov
  • 1,527
  • 16
  • 25
0
votes
1 answer

Mismatch between SEQ and ACK in TCP

I have been trying to figure out a case where a TCP connection between a HTTP client and HTTP server remains in ESTABLISHED state, lingering. This happens for 1 or 2 connections out of 1000+ connections. It is not clear if the client / server is at…
rsmoorthy
  • 2,284
  • 1
  • 24
  • 27
0
votes
1 answer

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? Jenkins is set up on this macOS. I am using sck 2.28 version. I have tried to specify exact path to…
0
votes
2 answers

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' | ack -1 'aa.*;' aaa;bbb; Is there a way to stop with aaa;?
Istvan
  • 7,500
  • 9
  • 59
  • 109
0
votes
1 answer

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 one "filtertype". In my case, I'd like to match files with a particular extension that also have a…
Joshua Goldberg
  • 5,059
  • 2
  • 34
  • 39
0
votes
1 answer

How to ignore search through test files

I am using ack and I want to avoid searching through any file which has name test. How do I do that? Following ensures that only search through files or directory with name test. I want reverse of it. ack foo --rb -G test
Nick Vanderbilt
  • 36,724
  • 29
  • 83
  • 106
0
votes
1 answer

PayPal GitHub Source Code: You do not have permissions to make this API call

When using the gitHub source code for PayPal using their API credential or my own which I verified with PayPal to be in working order I get and error "ACK: FAILURE You do not have permissions to make this API call". I'm trying to use the…
0
votes
1 answer

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 want to exclude those matching which are not interesting grep "WARNING" | grep -v…
kuchu
  • 23
  • 4
0
votes
3 answers

ack command didn't return output from current directory in bash script

(edited) Let say i have some directory structure like this: lv1_directory | file_contain_word_something.txt | lv2_directory so now i'm at lv2_directory and i have a code like this: #!/bin/bash findfile=$(ack -n 'something' . | wc -l) cd…
0
votes
1 answer

ack-grep Regex not returning consistent results

I am preforming the following ack-grep inside of a bash script and, while it mostly works .. I am getting inconsistent results. The line I am using is: ack-grep '(?<=imageserver).*(?=png)' This is Perl type Regex (supported by both ack_grep and…
Zak
  • 6,976
  • 2
  • 26
  • 48
0
votes
1 answer

Ack find unquoted strings php 7.2 in arrays

Using ack, how can I find unquoted strings in arrays?. I'm migrating to php 7.2, and this is the regex Im using: ack -w --heading --php "\[[a-zA-Z0-9_]*]" Am I missing something, at glance seem ok. However I don't know if I given false positives or…
voskys
  • 121
  • 1
  • 9
0
votes
1 answer

How to use Ack in RabbitMQ for C#?

I am using RabbitMQ to get some messages in a queue. One by One. This is a snippet of my code: var data = channel.BasicGet(queue, true); if (data != null) message = System.Text.Encoding.UTF8.GetString(data.Body); else …
0
votes
1 answer

Ack/Ag does not return search result without *

I am trying to search text in a directory and it turned out that the following syntaxes do not return any result ack -i "0xabcdef" ./ ack -i "0xabcdef" ack -i "0xabcdef" . while the following command works ack -i "0xabcdef" * Can someone explain…
user2979872
  • 413
  • 1
  • 9
  • 20