Top "Grep" questions

grep is a command-line text-search utility originally written for Unix.

Grep's "Invalid range end" ­— bug or feature?

I've got these three files: $ cat pattern-ok ['\-] $ cat pattern-buggy [\-'] $ cat text abc'def-ghi And now, is the following …

regex grep gnu
Get length of .wav from sox output

I need to get the length of a .wav file. Using: sox output.wav -n stat Gives: Samples read: 449718 Length (…

audio grep pipe wav sox
Extract only whole word using grep

I've got a big text file. I need to extract all the lines which contains the exact word "DUSP1". Here …

regex grep match exact-match
Grep for windows

Old.txt contains apple orange banana And New.txt contains apple orange banana grape lemon I can access new contents …

cmd grep findstr
Preserve colouring after piping grep to grep

There is a simlar question in Preserve ls colouring after grep’ing but it annoys me that if you pipe …

linux bash colors grep pipe
Equivalent of ps -A | grep -c process in Windows?

I am looking for an equivalent/alternative of Linux's ps -A | grep -c script.php for ms windows ? cheers, /Marcin

windows linux process grep ps
Regular expression to only match X number of characters from end of line

Below you'll see a small excerpt of matches from the string 'octeon' in a 32b memory dump from a proprietary …

regex grep string-search
How do you pipe input through grep to another utility?

I am using 'tail -f' to follow a log file as it's updated; next I pipe the output of that …

bash cygwin grep pipe cut
How do I view all ignored patterns set with svn:ignore recursively in an SVN repository?

I see it is possible to view a list of properties set on every directory within an SVN repository using …

svn awk grep
How to grep a word inside xml files in a folder

I know I can use grep to find a word in all the files present in a folder like this …

regex linux grep recursive-query