Shell Script Needed

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
e1994264
Premium Member
Premium Member
Posts: 28
Joined: Mon Jul 18, 2011 5:12 pm

Shell Script Needed

Post by e1994264 »

I need a shell script. A UNIX shell script consolidates all the Error files generated by one or more ETLs for a given interface into a single Error File.
Ex: Error file1 , Error File2, Error File 3 etc All need to be consolidated into one error file using Shell script
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You shouldn't need a script, a single cat command should do what you need:

Code: Select all

cat ErrorFile* > ConsolidatedErrorFile
The names are illustrative only. Use a wildcard pattern that will match all of the source files and a consolidated name that does not match the wildcard pattern... or put it elsewhere.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply