Top "Grep" questions

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

find string inside a gzipped file in a folder

My current problem is that I have around 10 folders, which contain gzipped files (around on an average 5 each). This makes …

linux shell directory grep gzip
Delete a list of files with find and grep

I want to delete all files which have names containing a specific word, e.g. "car". So far, I came …

grep find pipe rm
How to display modified date time with 'find' command?

With a find command, I can display directories names with multiple levels. The following command display all directories under /var …

linux command-line grep find stat
Count number of blank lines in a file

In count (non-blank) lines-of-code in bash they explain how to count the number of non-empty lines. But is there a …

unix sed grep text-files
Spider a Website and Return URLs Only

I'm looking for a way to pseudo-spider a website. The key is that I don't actually want the content, but …

grep uri wget web-crawler
Fastest possible grep

I'd like to know if there is any tip to make grep as fast as possible. I have a rather …

bash unix grep
Grepping a huge file (80GB) any way to speed it up?

grep -i -A 5 -B 5 'db_pd.Clients' eightygigsfile.sql This has been running for an hour on a fairly powerful …

bash grep
"while read LINE do" and grep problems

I have two files. file1.txt: Afghans Africans Alaskans ... where file2.txt contains the output from a wget on a …

bash grep while-loop cat
How to replace line-breaks with commas using grep in TextWrangler?

I have a text-file container a number of lines, which I need to turn into a csv. What is the …

regex grep line-breaks textwrangler
List only certain files in a directory matching the word BOZO and ending with either '123' or '456'

I'm trying to figure out how to get a list of file names for a file named BOZO but ending …

unix find grep ls