![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script for reading .csv file | creativeworld | Shell Programming and Scripting | 3 | 11-12-2007 02:47 AM |
| Reading a file and writing the file name to a param file. | thebeginer | UNIX for Advanced & Expert Users | 1 | 10-05-2007 04:38 PM |
| how to get nth file filelist | balireddy_77 | Shell Programming and Scripting | 1 | 11-20-2006 02:17 AM |
| Reading file names from a file and executing the relative file from shell script | anushilrai | Shell Programming and Scripting | 4 | 03-10-2006 05:25 AM |
| Reading a file into a C++ script | Breen | High Level Programming | 1 | 10-08-2003 06:04 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Script for reading filelist and preparing param file.
Hi All,
Not sure if this would be in a dummies sectiin or advanced. I'm looking for a script if someone has doen something like this. I have list of files - adc_earnedpoints.20070630.txt adc_earnedpoints.20070707.txt adc_earnedpoints.20070714.txt adc_earnedpoints.20070721.txt adc_earnedpoints.20070728.txt adc_earnedpoints.20070804.txt adc_earnedpoints.20070811.txt adc_earnedpoints.20070818.txt I need to process these files using informatica process and write the content of the file to a DB table. While writing the file to db i need to capture the date from the file name and pass to a parameter file in unix and use the parameter file to write the data value in db. And also i need to process 1 file for each run so that i can grab teh date from teh file name and capture in a param file which will be used by Informatica process. Something like this - file processing adc_earnedpoints.20070630.txt should be renamed to generic file adc_earnedpoints.txt and the date 20070630 should be wrriten to a param file with values - s_load_earned_points (informatica session) $$process_date=20070630 (which will be called in teh informatica mapping. And similarly process teh rest of files. Has anyone ever done something like this before, if so could you please provide teh script for this. Any help is greatly & kindly appreciated. Regards, Beginer. |
|
||||
|
Guys,
Woudl appreciate your help. Has anyone ever did something like this? Plese share with me. I need this ASAP. Having hard time, would kindly appreciate. Regards, The Learner... |
| Sponsored Links | ||
|
|