![]() |
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 |
| Cons: Configuration is done by editing the text-based config file ... - Techworld.com | iBot | UNIX and Linux RSS News | 0 | 10-09-2007 09:10 AM |
| Extracting Data from a File | oop | UNIX for Dummies Questions & Answers | 0 | 07-31-2007 11:48 AM |
| Extracting Data from xml file | nishana | Shell Programming and Scripting | 3 | 07-13-2007 07:17 AM |
| how to insert data in database based on text file? | forevercalz | Shell Programming and Scripting | 9 | 12-20-2005 11:40 PM |
| getting data from config file | esham | Shell Programming and Scripting | 7 | 11-21-2005 12:24 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Extracting data from text file based on configuration set in config file
Hi ,
a:) i have configuration file with pattren <Range start no>,<Range end no>,<type of records to be extracted from the data file>,<name of the file to store output> eg: myfile.confg 9899000000,9899999999,DATA,b.dat 9899000000,9899999999,SMS,a.dat b:) Stucture of my data file is : <no>,<type of record> eg maindatafile.dat 9899000000,SMS 9899000001,DATA 989901,DATA Now i want to extract the records from main file Condition One check is of range and other will be of Record type defined in configuration file Output should be like : File Name : >>>>> b.dat 9899000001,DATA Similarly seperate files based on range and Record type should be created. Can anybody help to get this achieved in best possible way... Thanks in Advance Last edited by zazzybob; 08-09-2007 at 07:30 AM.. Reason: Disabled smilies |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|