![]() |
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 |
| Help - Find command with list of files modified descending Order | TonySolarisAdmi | UNIX for Dummies Questions & Answers | 4 | 11-20-2008 01:24 PM |
| Find duplicate value comparing 2 files and create an output | ricky007 | Shell Programming and Scripting | 2 | 02-26-2008 04:57 PM |
| Reading list of files into ftp script | BkontheShell718 | Shell Programming and Scripting | 1 | 12-17-2007 04:02 PM |
| How to find the list of files | senthilk615 | Shell Programming and Scripting | 2 | 06-19-2007 01:43 AM |
| list read only files using find | vivekshankar | UNIX for Dummies Questions & Answers | 1 | 05-26-2005 04:47 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I need a script to find socials in files and output a list of those files
I am trying to find socail security numbers in files in (and under) a specific directory and output a list of the files where they are found... the format would be with no dashes just 9 numeric characters in a row.
I have tried this: find /DirToLookIn -exec grep '[0-9]\{9\}' /dev/null {} \; >> /FileToWriteFileNamesFoundTo but it is not working like I want. I need to know how to tell it there is a space, a "," or a " on either end of the string I am searching for? I am sure this is simple to do I just can't seem to get it to do it... Last edited by NewSolarisAdmin; 02-19-2009 at 12:51 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|