Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 04-16-2005, 04:30 PM   #1
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

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,

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

Rep: Reputation: 58
grep linux <insert directory>/*
Old 04-16-2005, 05:07 PM   #3
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



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 11:54 AM
Searching for a string krazykow Solaris / OpenSolaris 1 03-17-2005 11:55 AM
help searching files jorasmi Slackware 3 02-02-2005 04:06 AM
searching for multiple files ryedunn Linux - Newbie 4 09-27-2004 03:21 PM
Searching for files in KDE 3.1? bolinux Linux - Newbie 1 10-10-2003 11:40 PM

All times are GMT -5. The time now is 11:31 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