![]() |
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 |
| validation required in unix | u263066 | UNIX for Dummies Questions & Answers | 2 | 09-25-2008 03:37 AM |
| UNIX script Validation | matchey | Shell Programming and Scripting | 1 | 05-07-2008 11:56 AM |
| How Can I Do Time Validation in UNIX | mosammey | UNIX for Dummies Questions & Answers | 4 | 11-26-2007 12:02 PM |
| Time Validation in UNIX? | mosammey | Shell Programming and Scripting | 1 | 11-21-2007 02:23 PM |
| validation :file <filename> | u263066 | Shell Programming and Scripting | 2 | 09-26-2006 03:59 AM |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Unix File Validation! Help
Hi All,
I got a file with 3 fields delimited by hyphen "-". I have to validate & cleanse the data before i begine the processing Requirements 1. No record should contain more than 2 delimiters 2. No record should even contain less than 2 delimiters 3. Any records that matches rule 1 & 2 should be captured to bad_records.dat 4. Delete records satisfying rules 1 & 2 from original incoming data file Sample Format input.dat COL1-COL2-COL3 scott-2000-10 tiger-1000-20 c-bill-1000-30 mike20-1000 so after the validation&cleansing process, the data should appear like below input.dat scott-2000-10 tiger-1000-20 bad_records.dat c-bill-1000-30 mike20-1000 Please note i can't use perl progressive scanning. I need to achieve this via korn shell script Thanks guys |
| Bookmarks |
| Tags |
| grep or, minnu, unix file validation |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|