LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 04-16-2005, 05:30 PM   #1
hhegab
Member
 
Registered: Apr 2002
Location: IL, USA
Distribution: Fedora 13, Ubuntu 10.04 LTS
Posts: 162

Rep: Reputation: 30
searching for a string of charcters in some files


Hi,
I would like to know if it is possible for me to search for a string of characters (a word) in a folder which contains some files?
That is, I am looking for a file which contains the word "linux" say, is it possible to search all files in a folder which may have that word?

Thanks a lot,

hhegab
 
Old 04-16-2005, 05:43 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
grep linux <insert directory>/*
 
Old 04-16-2005, 06:07 PM   #3
hhegab
Member
 
Registered: Apr 2002
Location: IL, USA
Distribution: Fedora 13, Ubuntu 10.04 LTS
Posts: 162

Original Poster
Rep: Reputation: 30
Thanks a lot, that was quick!
again, thank you very much

hhegab
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
searching for files deept Programming 1 08-15-2005 12:54 PM
Searching for a string krazykow Solaris / OpenSolaris 1 03-17-2005 12:55 PM
help searching files jorasmi Slackware 3 02-02-2005 05:06 AM
searching for multiple files ryedunn Linux - Newbie 4 09-27-2004 04:21 PM
Searching for files in KDE 3.1? bolinux Linux - Newbie 1 10-11-2003 12:40 AM


All times are GMT -5. The time now is 11:29 PM.

Main Menu
Advertisement
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