Top "Grep" questions

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

How to search contents of multiple pdf files?

How could I search the contents of PDF files in a directory/subdirectory? I am looking for some command line …

linux pdf full-text-search grep debian
How to find and replace all occurrences of a string recursively in a directory tree?

Using just grep and sed, how do I replace all occurrences of: a.example.com with b.example.com within …

sed find grep replace
Using the grep and cut delimiter command (in bash shell scripting UNIX) - and kind of "reversing" it?

So I have a file with the text: puddle2_1557936:/home/rogers.williams/folderz/puddle2 I want to use the grep …

bash unix scripting grep cut
Using grep to search for hex strings in a file

I have been trying all day to get this to work. Does anyone know how to get grep, or something …

bash awk grep xargs dd
Waiting for background processes to finish before exiting script

How do I make sure that all my background processes have finished execution before I exit my script (TCL/Bash). …

bash shell unix tcl grep
grep for multiple strings in file on different lines (ie. whole file, not line based search)?

I want to grep for files containing the words Dansk, Svenska or Norsk on any line, with a usable returncode (…

bash awk grep
Command line: search and replace in all filenames matched by grep

I'm trying to search and replace a string in all files matched by grep: grep -n 'foo' * will give me …

linux perl awk sed grep
cat, grep and cut - translated to python

maybe there are enough questions and/or solutions for this, but I just can't help myself with this one question: …

python linux bash grep cut
Use grep to report back only line numbers

I have a file that possibly contains bad formatting (in this case, the occurrence of the pattern \\backslash). I would …

grep
How do you search for files containing DOS line endings (CRLF) with grep on Linux?

I want to search for files containing DOS line endings with grep on Linux. Something like this: grep -IUr --color …

linux bash grep newline