![]() |
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 |
| Compare 2 files for a single column and output differences | samit_9999 | UNIX for Dummies Questions & Answers | 1 | 04-23-2008 12:02 PM |
| Executing Multiple .SQL Files from Single Shell Script file | anushilrai | Shell Programming and Scripting | 3 | 04-07-2008 10:09 AM |
| how to rename multiple files with a single command | tayyabq8 | Shell Programming and Scripting | 5 | 03-18-2008 04:04 PM |
| how to divide single large log file into multiple files. | kamleshm | Shell Programming and Scripting | 1 | 01-15-2008 07:33 PM |
| divide with awk | tontal | Shell Programming and Scripting | 1 | 10-09-2006 07:23 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Here is the format of my file; I do not have the delimiter in the file for the data to be separated.
Each line in the file is in the following format. File contains the data of different WebOfferCodes Item Code | Account Number | Card Number | Source code | WebOfferCode 12digits | 10 Digits | 15 digits | 10 letters | 20 letters Format of file:- 3412222240171M41006422373273564021006SDFGHJRSGJBBBBBBBBBBBBBBBBBBBB 0009546640171M41006400373273564531345TTTTPAPAPBBBBBBBBBBBBBBBBBBBB 0009546640171M41006433373273564021006YYYYPAPAPHHHHHHHHHHHHHHHHHH 3412222240171M41006455373273564021116PAPAPAPAPBBBBBBBBBBBBBBBBBBBB 0009546640171M41006400373273564531345UUUUPAPAPHHHHHHHHHHHHHHHHHH 0009546640171M41006477373273564021006SDFGHJRSGJBBBBBBBBBBBBBBBBBBBBB Item Code: 12digits Account Number: 10 Digits Card Number: 15 digits Source_code:10 letters WebOfferCode: 20 letters I need the optimal ways to sort this file of million records.So i want to divide the single file with multiple WebOffercode into distinct file containing data of 1 Weboffercode each Validation to be made:- Card Member fields should not be null Web Offer code fields should not be null |
|
||||
|
Join the data in two files
hello friendz...
I have multiple around 6 files in the folder I have to load the each file to the different tables in DB2 database. List of tables is present in a file called table_list.txt file MR_Detail_1 MR_Detail_4 MR_Detail_5 Note:- LET.MRTEST.BBBB.txt present in xyz folder should be loaded into MR_Detail_1 table LET.MRTEST.CCCC.txt present in xyz folder should be loaded into MR_detail_4 table LET.MRTEST.DDDD.txt present in xyz folder should be loaded into MR_detail_5 table There are around 6 columns in the database and the data comes from the file. Format for the file 3412222240171M41006422373273564021006SDFGHJRSGJBBBBBBBBBBBBBBBBBBBB 0009546640171M41006400373273564531345TTTTPAPAPABBBBBBBBBBBBBBBBBBBB Each file contains this type of data .How will I write my shell script so that my code picks the file automatically from xyz folder and keep loading on the Table_list.txt.There should me mapping between the Files and tables What do you suggest shall I keep this mapping between file name and table in 1 file and read this file..how can do this like creating this format file LET.MRTEST.BBBB.txt MR_DETAIL_1 LET.MRTEST.BBBB.txt MR_DETAIL_4 LET.MRTEST.BBBB.txt MR_DETAIL_5 AND READING these elements and substituting in my loadutility command how can I do this...please help me |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|