grep is a command-line tool for searching text patterns in files.

learn more… | top users | synonyms

1
vote
1answer
571 views

How does one simular the old unix grep -S strict functionality in linux (CentOS 5.2)

I am grepping the output of a command and I wish to only return specific, strict results. I remember some iteration of grep had a strict option -s/--strict. example: command | grep -i bytes This ...
22
votes
5answers
22k views

Recursive text search with grep and file patterns

Given this example folder structure: /folder1/file1.txt /folder1/file2.djd /folder2/file3.txt /folder2/file2.fha How do I do a recursive text search on all *.txt files with grep from "/"? ("grep ...
6
votes
6answers
5k views

How to Find a file in FreeBSD

I'm trying to locate all copies of example.filename on my FreeBSD server. What's the best / easiest / most efficient way to do this?