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
2
votes
1 answer

How can I make ack search in "Gemfile"?

Does anyone know how to make "ack" to search in such files like "Gemfile"? Just adding --type-add=ruby=Gemfile to "~/.ackrc" doesn't work because "Gemfile" doesn't have any file extension. Thanks!
Kostia
  • 150
  • 4
2
votes
1 answer

Commit modified files only using subversion

I have a long list of commits to make and, as such, would like to stagger the commits. So, when I do: svn st | ack '^M' I would like to commit these files only Is this possible through the command line?
crmpicco
  • 16,605
  • 26
  • 134
  • 210
1
vote
1 answer

Is there any way to search in filetypes not recognized by ack?

You can use ack --js to search only in js files. But what if the file type I want to search for is not currently recognized by ack? Any way to work around it?
twimo
  • 4,061
  • 5
  • 29
  • 32
1
vote
1 answer

Ack: permission denied outputs along with results

when I ack something I often get output like this: Ack: tmp/nonces/4e8c9698-https-www.google.com-kkEIoIiSEjUBRD.lRR_tT9V6ccE-mRPtTixYnWzzGcPpbIwx9scpDnE: Permission denied Ack:…
butterywombat
  • 2,069
  • 7
  • 26
  • 44
1
vote
0 answers

Preserve colors in piped ack-grep

grep uses --color=always to preserve colors in a piped output. But this doesn't work in ack-grep, what is the ack equivalent?
Patoshi パトシ
  • 21,707
  • 5
  • 29
  • 47
1
vote
0 answers

How to setup stop condition on VEML7700 through I2C library? I am not getting the ACK from reading

int I2C_Master_ReadReg(unsigned char dev_addr, unsigned char reg_addr, unsigned char count, unsigned char *pData, void (* Sub)(void)) { uint8_t cnt; start(); sda(dev_addr); if (!(dev_addr == 0x10)) { cnt = 0; …
NoUdemy
  • 11
  • 1
1
vote
1 answer

How to make ack include .pbxproj files?

How do I make ack include project.pbxproj files when searching inside Xcode projects?
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
1
vote
3 answers

What's confusing both grep and ack?

Try this: download https://www.mathworks.com/matlabcentral/fileexchange/19-delta-sigma-toolbox In the unzipped folder, I get the following results: ack --no-heading --no-break --matlab dsexample Contents.m:56:% dsexample1 - Discrete-time…
DaveC
  • 115
  • 8
1
vote
0 answers

Locate Ack in Emacs on Windows

I'm trying to integrate Ack in Emacs. All is fine on Linux, but I need to make it work on Windows too. My ack is already installed (somewhere on %PATH%) and working correctly . Rather, I should say my ack.pl is working correctly because Windows…
DaveC
  • 115
  • 8
1
vote
1 answer

How can I modify a type in ack?

I know how to set a new type. What I want to do is modify an existing type. I want to add haml files to the ruby type. I could probably use --set-type and redefine the ruby type but I don't know how to redefine it and still include files called…
Huliax
  • 1,489
  • 3
  • 15
  • 27
1
vote
0 answers

No SYN/ACK from Windows 10 server

I would like to connect a Raspberry Pi 4B (RPI) to a PC via Ethernet using TCPIP. Both devices should have fixed IPv4 address. PC is the server, Raspberry is the client. Server program is running under Windows 7 (on a Dell laptop) or Windows 10…
andras
  • 11
  • 1
1
vote
0 answers

How is a TFTP server supposed to handle duplicate ACK messages and duplicate DATA messages from a client?

I'm creating a TFTP server and trying to figure out how I need to handle duplicate ACK messages received from the client and duplicate DATA messages received from the client based on the TFTP protocol: https://www.rfc-editor.org/rfc/rfc1350#ref-4
lauren
  • 11
  • 1
1
vote
1 answer

ack-grep throws

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::_compile_file_filter('HASH(0x18cad00)', 'ARRAY(0x19d8700)') called at /usr/bin/ack-grep line…
Naveen Gara
  • 345
  • 2
  • 13
1
vote
1 answer

ack-grep: command not found in gvim after upgrade to Ubuntu 18.04

Running :Ack anything in gvim now gives || /bin/bash: ack-grep: command not found ack-grep is already the newest version (2.22-1) It was working fine in Ubuntu 16.04. I have the ack.vim plugin in ~/.vim/bundle/ack.vim/
rigyt
  • 2,219
  • 3
  • 28
  • 40
1
vote
2 answers

Perl ack tool with output parameter and new lines

I use ack very often, but something I have not been able to discover is how to make it add new lines when using the output parameter. Example echo 'name=Joe,id=123' | ack '^name=(\w+),id=(\d+)' --output="User name: $1\nUser ID: $2" I expect User…
JohnnyLoo
  • 877
  • 1
  • 11
  • 22