ack Questions

11

Solved

I want to run ack or grep on HTML files that often have very long lines. I don't want to see very long lines that wrap repeatedly. But I do want to see just that portion of a long line that surroun...
Brammer asked 9/1, 2010 at 20:19

6

Solved

Using ack (sometimes packaged as ack-grep) I know that I can find paths that contain a specific string by doing: ack -g somestring But what if I only want files which have "somestring" in their fi...
Relationship asked 8/10, 2011 at 18:26

3

Solved

I'm guessing this has nothing to do with ack but more with bash: Here we create file.txt containing the string foobar soack can find foobar in it: > echo foobar > file.txt > echo 'ack foob...
Queenstown asked 14/7, 2017 at 5:48

3

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 grep command but I'm getting this error. $ grep -Ei...
Wavelength asked 21/3, 2013 at 2:33

3

Solved

I've recently found git grep and come to like its speed and de facto searching of only the files in the repo. But coming from ack (ack-grep in Ubuntu), one thing left to be desired is the output fo...
Stagehand asked 19/9, 2016 at 20:4

4

Solved

I would like to use Ack (or similar plugin if something else can do the job) to search my whole project in Vim by default, rather than just the current directory. Ideally I'd end up with a process ...
Pronounced asked 15/10, 2013 at 9:49

4

Solved

I want to search multiple patterns in a directory containing recursive directories and files. I know command for grep which is as follows grep -e '(pattern1)|(pattern2)' or grep -r -E 'string1...
Schwann asked 9/10, 2014 at 10:2

1

I have large zstd-compressed text files. How can I run fast search over them ? Can I use AG (The Silver Searcher) or something similar ? I've tried AG but it doesn't work, I have a "failed to ...
Trichloroethylene asked 25/7, 2019 at 9:40

2

Solved

I have recently discovered ack and ack -ir --ignore-dir={node_modules,dist,.git} <search-term> works great for most things but this ---node_modules/ ---------------project1/ ---------------...
Ernaline asked 13/11, 2016 at 3:59

4

Solved

A coworker is trying to use ack (a Perl program) on his Windows machine, having tried it under Linux and decided he definitely wants to use it. He managed to get Strawberry Perl installed on his ma...
Twomey asked 20/3, 2009 at 18:54

3

Solved

Currently I have this mapping in my ~/.vimrc noremap <Leader>a :Ack <cword><cr> which enables me to search for a word under the cursor. I would like to search for a current vi...
Jihad asked 18/1, 2015 at 15:5

6

Solved

I went through fair amount of google search to install ack-grep on CentOS but I didn't find anything help. I also looked for the source codes but couldn't find it neither. Does anyone know how to i...
Keelung asked 4/2, 2014 at 19:12

3

How can I use ack to search in files of a specific file type. For example ack -f .scss blah acl -f .rb blah Obviously the above does not work but how can I do this with ack?
ack
Bursiform asked 8/8, 2014 at 9:32

3

Solved

How to search file with the ack to find lines containing ALL (nor any) of defined patterns? the ANY (OR) is easy, like: ack 'pattern1|pattern2|pattern3' but how to write the AND (ALL) ? e.g. ho...
Taster asked 28/3, 2016 at 16:59

9

Solved

I have never used Perl, but I am really impressed by the ack, which I would like to use for source code searching, etc. Can anyone guide me of how to make use of this excellent library on Windows?...
Nonalcoholic asked 21/6, 2009 at 11:29

2

Solved

I use ag to search through my notes. My notes are written down in Markdown files and Markdown cells contained within Jupyter notebooks. I can search the Markdown files conveniently with ag --markd...
Infertile asked 9/5, 2018 at 14:11

5

Solved

With the normal grep command there is an --exclude option (covered in detail here: Use grep --exclude/--include syntax to not grep through certain files) that lets you ignore specific files when yo...
ack
Kerrikerrie asked 24/7, 2012 at 17:21

1

Solved

I have a folder of aliases. These are bash files. Some are sensitive, so I keep them in a .gitignore. ~/.bash_utilities bash_a.sh bash_b.sh .gitignore .gitignore: bash_b.sh The problem is t...
Epiphenomenon asked 1/1, 2018 at 9:30

2

Solved

I am trying to see how softmax_cross_entropy_with_logits_v2() is implemented. It calls _softmax_cross_entropy_with_logits(). But I don't see where the latter is defined. Does anybody know how to lo...
Ecumenical asked 27/12, 2017 at 6:11

4

Solved

How do I ignore specific directories via RegEx with ack? I can use the --ignore-dir option, but this does not let me specify a RegEx. I want to be able to ignore any directory, which has the words...
Ivar asked 29/12, 2011 at 15:35

1

I have found a lot of pages with config examples such as: let g:unite_source_grep_command = 'ag' let g:unite_source_grep_default_opts = \ '--line-numbers --nocolor --nogroup --hidden --ignore ' l...
Lynnet asked 14/4, 2015 at 21:28

5

I am using the Ack plugin in Vim, which helps me to quickly search for strings in my project. However, sometimes I want to replace all or some occurrences of the found strings. You can do some kind...
Brassy asked 25/1, 2011 at 10:50

2

Solved

ack foo * returns a listing of lines: bar.txt 28: this is foo stuff dump.txt 12: results of foo gobs.txt 1137: more lines with foo and ack -c -l returns 3 My question is, how can I s...
Amphibian asked 14/11, 2012 at 6:10

4

Solved

I put this in my .ackrc: --type-set=DUMB=*.orig --noDUMB ... but I'm still seeing files like main.py.orig in my ack results. I tried doing --type-set=DUMB=*.*.orig too, but that didn't work eith...
ack
Poleyn asked 20/1, 2011 at 14:49

2

Solved

Where can one find a listing of all color combinations or such available to use with ack(-grep)? I find that passing logs through ack-grep can be quite helpful at detecting errors, warnings or vari...
Enrica asked 8/3, 2012 at 21:35

© 2022 - 2024 — McMap. All rights reserved.