The UNIX and Linux Forums  

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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to implement polling for a function using timer in C? naan High Level Programming 7 11-19-2007 01:00 AM
Dummy questions about how to get the size of a directory by command GCTEII UNIX for Dummies Questions & Answers 4 05-15-2006 05:36 AM
Dummy questions about how to get the size of a directory by command GCTEII Shell Programming and Scripting 2 05-14-2006 11:39 PM
moving files from a unix directory to a windows directory gleads UNIX for Dummies Questions & Answers 2 08-29-2002 05:42 PM
Help - Polling Script brianmu High Level Programming 1 09-06-2001 07:15 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-14-2005
Registered User
 

Join Date: Jun 2005
Posts: 4
Polling/Interrogate Directory Questions

Hello, need some ideas on the control statement for a script that will watch a directory, looking for any duplicate records as they are added.

I was thinking about a process that would watch the dir in a time window. Whenever a new line or entry was made I would grep the existing file for any exact lines that match.

Not sure about how to do this, maybe check on " ls | wc -l " or something similiar. Not sure about the control logic, while loop or a for statement.

Any ideas would be appreciated.

thanks, david
Reply With Quote
Forum Sponsor
  #2  
Old 06-14-2005
Just Ice's Avatar
Lights on, brain off.
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 629
... just for clarification ...

1. files come into directory
2. files have records
3. files may have duplicate records
4. you want to remove duplicate records in files

right?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0