LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 09-06-2008, 03:28 AM   #1
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL 4
Posts: 360

Rep: Reputation: 29
grep a word from some files???


Hi,

I have 80 files and I am editioing them, now problem is that I want to look for some word within these files. suppose I want to look for a word called "allows" where this word is in these files. what will be the quick command for it.

thanks
shahz
 
Old 09-06-2008, 04:09 AM   #2
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL 4
Posts: 360

Original Poster
Rep: Reputation: 29
sorry I was to early I got it working.

thanks
shahz
 
Old 09-06-2008, 04:12 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,671
Blog Entries: 54

Rep: Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953
Quote:
Originally Posted by shahz View Post
sorry I was to early I got it working.
Next time please also post your solution so others may benefit from it. Thanks.
 
Old 09-06-2008, 04:48 AM   #4
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL 4
Posts: 360

Original Poster
Rep: Reputation: 29
okay brother no problem this is the sloution I was looking for a word "Allow" within some 80 files, and the command was.
the files were having extension of .dm

grep allow *.dm

hope it helps some one.

thanks
shahz
 
  


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
grep a word in a .tar.gz file prernabhagat Linux - General 1 12-07-2007 02:53 AM
Word count with grep DiagonalArg Linux - Software 3 02-13-2006 01:46 PM
grep data between two word DropSig Linux - General 2 01-27-2006 09:31 PM
find a word within any files Linh Linux - General 6 06-06-2004 12:15 PM
grep to NOT select a word robertmarkbram Programming 2 08-21-2003 11:48 PM


All times are GMT -5. The time now is 12:00 AM.

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