Top "Grep" questions

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

Using grep with a pattern file: print single and duplicate entries

Let me start off by saying I don't want to print only the duplicate lines nor do I want to …

grep duplicate-data line-breaks no-match
xml_grep get attribute from element

Is it possible (and if so, how) with xml_grep to get the value of a specific attribute from a …

xml linux command-line grep xmllint
Running grep From Java Program

I've spent the past 3 days without much luck on google on how to run a grep process from within Java. …

java linux process grep processbuilder
How to get rid of `grep: warning: GREP_OPTIONS is deprecated; please use an alias or script`?

I have zsh + zprezto installed on my Arch linux. Every time I open the console the annoying warning is being …

grep zsh archlinux prezto
Use grep to find either of two strings without changing the order of the lines?

I'm sure this has been asked but I can't find it so my apologies for redundancy. I want to use …

regex grep protein-database
How to replace an item between two delimiters in TextWrangler

I want to replace a phonetic symbol between phonetic transcription slashes like this: /anycharacter*ou*anycharacter/ to /anycharacter*au*anycharacter/ …

regex grep textwrangler
ack misses results (vs. grep)

I'm sure I'm misunderstanding something about ack's file/directory ignore defaults, but perhaps somebody could shed some light on this …

grep ack
Kill a process from Linux Application

What is best and most efficient way to find pid of a specific task. Say: ps -ef | grep "\/usr\/sbin\/…

linux grep kill ps
Searching multiple patterns (words) with ack?

I want to search multiple patterns in a directory containing recursive directories and files. I know command for grep which …

linux grep ack ag
Grep error due to expanding variables with spaces

I have a file called "physics 1b.sh". In bash, if I try x="physics 1b" grep "string" "$x".sh …

bash grep double quotes variable-expansion