Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-30-2002, 11:17 PM   #1
Registered: Jul 2002
Location: India
Distribution: Ubuntu, Gentoo
Posts: 99

Rep: Reputation: 15
Finding files based on content

How can i search 4 files based on the content alone from the CLI
Old 07-30-2002, 11:28 PM   #2
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
I am not sure about the actual command but grep -ir "What to find" /* will to the trick ( I know it is brute force but don't know anything else )
Old 08-04-2002, 11:01 PM   #3
Registered: Jul 2002
Location: India
Distribution: Ubuntu, Gentoo
Posts: 99

Original Poster
Rep: Reputation: 15
Sarin ,
Thanks it seems to be working , i'll check it out properly . I initially thought grep could be used only for searching some text within a file.
I wonder i did i remain a stupid guy o long :-)


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove files based on content stefaandk Linux - General 2 08-13-2005 08:03 AM
How to find files with the necessary content? kornerr Linux - General 6 08-09-2005 05:48 AM
renaming text files based upon a pattern in their content Spacepup Linux - General 1 07-28-2005 01:43 PM
Finding a wireless card based on Intel IPW2200 azrael808 Linux - Hardware 0 04-24-2005 08:16 AM
Can iptables be configured to reject web requests based on content? steppin_razor Linux - Security 10 11-29-2001 12:49 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:40 AM.

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