![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Find and store files based on FileName and Modified Time | edisonantus | UNIX for Advanced & Expert Users | 2 | 02-19-2008 02:25 PM |
| file moving based on file content | melvyn.cochrane | Shell Programming and Scripting | 12 | 02-15-2008 06:10 AM |
| Adding filename into file content | missutoomuch | Shell Programming and Scripting | 1 | 11-11-2005 04:02 PM |
| find the same content in the file | ust | UNIX for Dummies Questions & Answers | 4 | 03-25-2005 05:55 AM |
| search for hardlinks based on filename via find command | hunternjb | UNIX for Dummies Questions & Answers | 2 | 03-27-2001 01:07 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
find filename based on file content
There is a flat file on my system which contains email addreses of people in my company. This file is utilized when sending notifications for various things. However nobody knows where this file is located or what it is named. The only thing we know is the email address of a user who needs to be deleted from this file. Is there a command to search through a file system and return results based on the content of the file? For example, if I wanted to see all filenames and locations where jkoller@jkoller.com was in the file how would I do that? Thanks!!! |
|
||||
|
Hey PxT,
The /dev/null is a nice twist - I'm not sure I understand why/how this works - I would have used a -l option on the grep to list the files. But showing the file & pattern found is nice. Can you explain what this is doing? Is the behavior related to grep or to the find? |
![]() |
| Bookmarks |
| Tags |
| grep or |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|