The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
finding text in a file §ynic UNIX for Dummies Questions & Answers 5 01-06-2008 07:32 PM
how to replace a text inside a file based on a xml key reldb Shell Programming and Scripting 4 03-11-2007 04:15 AM
Replacing text inside a directory vatsan UNIX for Advanced & Expert Users 1 04-01-2006 03:34 AM
Finding out if there is text in a file. iCONAN Shell Programming and Scripting 9 09-15-2004 06:15 PM
finding out the pid for a busy text file jxh461 Filesystems, Disks and Memory 1 06-28-2002 11:51 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-22-2002
dindan100 dindan100 is offline
Registered User
  
 

Join Date: Oct 2002
Posts: 2
finding text inside file

Hi everyone

I have a small problem i cant find a soloution to...

I'm using digital unix and have to find out all the files which have a certain string inside them and i dont know how to do it.

*This search is done as root.
*All files from '/' to the last directory should be searched for this string

Any idea anyone?


10x for advance
  #2 (permalink)  
Old 10-22-2002
Vishnu Vishnu is offline
Registered User
  
 

Join Date: Aug 2002
Location: Marlboro, MA
Posts: 114
use the search tab on the top right corner...

give a string "search files"

search for words in file
  #3 (permalink)  
Old 10-22-2002
ganti ganti is offline
Registered User
  
 

Join Date: Jul 2002
Posts: 25
grep "string" `find / -type f`

GOOD LUCK
  #4 (permalink)  
Old 10-22-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,120
Quote:
Originally posted by ganti
grep "string" `find / -type f`

GOOD LUCK
"GOOD LUCK" is right!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:49 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0