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
2 answers

how do I install ack on OS X?

i did this once before, but have since forgotten how. i seem to remember having the ack.pl file in an "opt" directory close to root level on my Mac. i also remember that i will need to update my path settings in my ~/.profile or ~/.bash_profile,…
dustincaruso
  • 99
  • 2
  • 11
0
votes
2 answers

If ack finds results do this; else do that

I'm trying to write out a script that will automate one of my more tedious tasks. I've pretty much got everything down and can get the individual components of code to do what I want them to, but I'm running into trouble trying to get the if…
I Dabble
  • 321
  • 2
  • 11
0
votes
1 answer

Debugging Git Bash key binding and git status color issues

I installed ack via chocolately on my Windows 8 machine. This caused the following issues with Git Bash: Git output is no longer coloured. I've confirmed this with git status and git diff, neither produce colour. Other non-git commands do…
KarlPurk
  • 275
  • 1
  • 9
0
votes
2 answers

Escaping period in Ack.vim

I'm looking forward to search for the following pattern with Ack.vim: .section Where . should only match a period, and not any character. I tried the following: \.section [.]section -Q .section What is the correct way of escaping the period?
jviotti
  • 17,881
  • 26
  • 89
  • 148
0
votes
1 answer

elisp compile, add a regexp to error detection

I am starting with emacs, and don't know much elisp. Nearly nothing, really. I want to use ack as a replacement of grep. These are the instructions I followed to use ack from within emacs: http://www.rooijan.za.net/?q=ack_el Now I don't like the…
Gauthier
  • 40,309
  • 11
  • 63
  • 97
0
votes
1 answer

How can I get ack to return results?

I know there's some text inside a file under $SOURCE/frameworks/base/res/res/values/strings.xml that says "hotspot," but if I am in the source directory and execute ack hotspot, I get "no file or directory." This is my first time trying to navigate…
Taylor Kline
  • 908
  • 3
  • 9
  • 30
0
votes
1 answer

Quickfix List doesn't work when using ack or The Silver Searcher

I'm new to Vim and am trying to figure out project-wide searching. Following Practical Vim and a Thoughbot post, I've tried using ack instead of grep and then The Silver Searcher instead of ack by putting this in my vimrc When trying to use ack…
lancejjohnson
  • 1,768
  • 1
  • 11
  • 5
0
votes
1 answer

Implementing blocking messages with Rabbitmq (or acking between publisher and consumer)

I have 8 consumers on a queue and any of them can pick up messages and once processed, this effects the db. Most messages can be run async but on a few messages, we need to stop the queue consuming until that message has been fully processed by one…
Tolga E
  • 12,188
  • 15
  • 49
  • 61
0
votes
1 answer

Loop through list of files and ack sourcecode to see if files are still used

I have a txt file with loads of old jquery plugin filenames, each on a new line. Ideally, I would be able to loop over this list of filenames, and ack in my source code to find which files still use these libraries while at the same time saying how…
Du3
  • 1,424
  • 6
  • 18
  • 36
0
votes
2 answers

Can ack be coerced into searching a complicated project

ack is a great tool for searching, especially if everything you want to find is in nested directories below a top project dir. I'd like to search a number of different directory trees, in order to search my whole project. I could do something like…
loneRanger
  • 812
  • 1
  • 8
  • 14
0
votes
1 answer

Integrate ack to VIM74 on window7 64bit

I'm using ack.vim on windows 7 64bit with VIM74(32bit), but i can't get my search results in quickfix windows This is how my SHELL window display below: C:\WINDOWS\system32\cmd.exe /c (ack.pl -H --nocolor --nogroup --column Flash_Locked…
Edward
  • 3
  • 1
0
votes
1 answer

Unused Images in XCode Project

I have created small bash script which finds the unused images(*.jpg and *.png) in iOS project. And here is the code for the same. //For removing space and replace '\n' in file and folder names `IFS=$'\n'` //Find all files with extension *.png…
Anand Reddy
  • 61
  • 1
  • 3
0
votes
2 answers

Ack not returning results in Vim in ubuntu

I'm using vim with ack in ubuntu. When searching with :Ack is not returning any result. I had installed both ack-grep and ack.vim. am i missing anything here?
deepak
  • 3,074
  • 2
  • 20
  • 29
0
votes
1 answer

Find files where 2 given words occur in and also show lines where words appear

Suppose I want to find all files in the current directory that have at least one occurence of the name Peter and at least one occurence of the name James. I can find a list of those files by doing ack-grep -l Peter * | xargs ack-grep -l James as…
Bentley4
  • 10,678
  • 25
  • 83
  • 134
0
votes
2 answers

put variables from shell inside ack-grep using alias

I want to use ack-grep alias in .zshrc. Here is how my alias lookes like now: alias 'ack'='ack-grep -C -i -G --match' but what I need is to put strings from this: % ack string1 string2 inside alias 'ack'='ack-grep -C -i -G string1 --match…
boldnik
  • 2,547
  • 2
  • 27
  • 32
1 2 3
17
18