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 > Shell Programming and Scripting
.
google unix.com



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

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 02-19-2009
NewSolarisAdmin NewSolarisAdmin is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 55
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
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 07:10 AM.


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