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...
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...
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...
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...
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...
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 ...
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...
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 ...
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...
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...
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?
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...
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?...
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...
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...
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...
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...
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...
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...
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...
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...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.