![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
... 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? |
||||
| Google The UNIX and Linux Forums |