![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Check file size and remove files | srivsn | Shell Programming and Scripting | 5 | 05-28-2009 01:09 PM |
| read list of filenames from text file and remove these files in multiple directories | fxvisions | Shell Programming and Scripting | 5 | 08-07-2008 03:59 PM |
| Need to remove files older than 30 days except directories | malaymaru | Shell Programming and Scripting | 6 | 11-13-2006 11:50 PM |
| How to Remove Ctrl M characters in files from directories and its subdirectories | skdp | Shell Programming and Scripting | 7 | 07-29-2006 11:53 PM |
| What/How to check before deleting files and directories | yvochan | UNIX for Dummies Questions & Answers | 4 | 07-29-2005 09:42 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Check all files in directories for string and remove.. possible?
Say I am in /var/adm/bin and I want to search through all the various scripts and such in that directory for a string, say, xxx@yyy.com
I want to find every file with that in there and replace it with a single space. Is that possible? Or, is it possible to search every file and get a list of what files have that in there? If I do a more * | grep xxx@yyy.com I get a list of all the lines with that in there but no reference to the file name. Anyone have any ideas? |
|
||||
|
Quote:
This wont work if you have subdirectories with files inside them. In which case you could use something like this: grep "pattern" `find /path -name * -print` |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|