Page 1 of 1

Shell Script Needed

Posted: Wed Aug 24, 2011 2:36 pm
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

Posted: Wed Aug 24, 2011 3:02 pm
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.