recentpopularlog in

kme : grep   31

GitHub - tomnomnom/gron: Make JSON greppable!
gron - Make JSON greppable!

gron transforms JSON into discrete assignments to make it easier to grep for what you want and see the absolute 'path' to it. It eases the exploration of APIs that return large blobs of JSON but have terrible documentation.
go  json  textprocessing  grep  patternmatching  webdevel  debugging  troubleshooting  commandline  cli 
july 2019 by kme
GitHub - tomnomnom/gf: A wrapper around grep, to help you grep for things
gf - A wrapper around grep to avoid typing common patterns.

What? Why?

I use grep a lot. When auditing code bases, looking at the output of meg, or just generally dealing with large amounts of data. I often end up using fairly complex patterns like this one:

▶ grep -HnrE '(\$_(POST|GET|COOKIE|REQUEST|SERVER|FILES)|php://(input|stdin))' *

It's really easy to mess up when typing all of that, and it can be hard to know if you haven't got any results because there are non to find, or because you screwed up writing the pattern or chose the wrong flags.

I wrote gf to give names to the pattern and flag combinations I use all the time. So the above command becomes simply:

▶ gf php-sources
go  cli  commandline  searching  textprocessing  patternmatching  regex  grep  alternativeto  ack  ag 
july 2019 by kme
php - PCRE is compiled without UTF support - Stack Overflow | https://stackoverflow.com/
I didn't have this problem at all, but this SO thread has the best google juice for "grep: this version of PCRE is compiled without UTF support".

How I worked around it was to unset the LANG environment variable (mine was "de_DE.UTF-8").

How I worked around it the second time I ran into this was to remove the copy of the 'libpcre' library that had been compiled without UTF-8 support from the lab drive, because we use LD_LIBRARY_PATH in the login scripts (still, for the moment).
shellscripting  pcre  grep  errormessage  utf8  unicode  workaround  solution 
january 2018 by kme
xml_grep2 - search.cpan.org
This is called "App::Xml_grep2" on CPAN.
-t, --text-only

Return the result as text (using the XPath value of nodes). Results are stripped of newlines and output 1 per line.

Results are in the original encoding for the document.
perl  xml  grep  xpath  html  webdevel  textprocessing 
december 2017 by kme
Search multiple files with :vimgrep
Ctrl+R, / - insert the last search pattern at the insertion point
vim  tutorial  grep  searchandindex  video  howto 
march 2016 by kme
TextCrawler - Search and Replace Files (Free)
Same people who make "Duplicate Cleaner" (http://www.digitalvolcano.co.uk/duplicatecleaner.html), which has gotten the job done for me on several occasions.
textprocessing  grep  searchandindex  windows  utility  software  freeware 
january 2014 by kme
AWK: compare two files - LinuxQuestions.org
Solution to finding the contents of one file in another and printing the matching lines (using grep -F)
awk  grep  shellscripting  solution 
february 2010 by kme

Copy this bookmark:





to read