LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 03-03-2011, 12:54 PM   #1
ortizmj
LQ Newbie
 
Registered: Oct 2010
Distribution: RH/Ubuntu
Posts: 5

Rep: Reputation: 0
Searching for text string in all files


Is it possible to search ALL files on a system for a specific text string? I've been messing around with grep without any luck.

Thanks in advance!
 
Old 03-03-2011, 01:00 PM   #2
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware14.1 x64(Workstation), Antix MX-14 x32(Netbook), CentOS5/6 (Servers)
Posts: 650

Rep: Reputation: 78
Yes, I suppose you just have to type -

$ sudo find / -name "string-name"
 
Old 03-03-2011, 01:03 PM   #3
ortizmj
LQ Newbie
 
Registered: Oct 2010
Distribution: RH/Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Nevermind, I found the "-R" (recursive) option for grep!
 
  


Reply

Tags
files, search, text


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching a specific directory for files containing a text string lothwen Linux - Newbie 1 11-20-2010 10:58 AM
searching for Text within files. waelaltaqi Linux - Software 2 06-18-2007 02:56 PM
searching for a string of charcters in some files hhegab Programming 2 04-16-2005 05:07 PM
Searching text files by content will103 Linux - Software 1 01-24-2005 07:43 AM
searching inside text files minm Linux - Newbie 2 01-08-2005 11:56 PM


All times are GMT -5. The time now is 04:01 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration