Troubleshooting
Problem
-e Option For CMUEXTRACT UtilityCommand Does Not Append The Data To The File (SCI87605)
Symptom
cmuextract command -e or --enddat option not working
Data is displayed on the screen and not written to the file specified
Cause
Resolving The Problem
The -e file is NOT an output file that gets appended to, it is an input file that gets copied to the end of the <-f output> file when the extract is over.
Example:
$ cat suffixfile <-A one line suffix file<BR>This line is from the suffix file and gets appended to the extracted file.</P><br/><br/><P><BR>$ cmuextract -b"test batch" -f outputfile -e suffixfile -Q </P><br/><br/><P>Extract a one line batch<BR>cmuextract test 4 test batch 22 06/02/10-17:15 ARZ 99<BR></P><br/><br/><P>$ cat outputfile <-Now we have a 2 line output file.<BR>This is a test batch.<BR>This line is from the suffix file and gets appended to the extracted file.</P><br/><br/><P>To append the extracted batch to an existing file, you should be able to simply issue:</P><br/><br/><P>$ cmuextract -b"test file" >> outputfile -Q
cmuextract test 4 test batch 22 06/02/10-17:15 ARZ 98
$ cat outputfile
This is a test batch.
This line is from the suffix file and gets appended to the extracted file.
This is a test batch.
Documentation Change: cmuextract -e parameter to read "appends the contents of the named file to the end of the output file after the batch is extracted"
Historical Number
PRI29244
Product Synonym
[<p><b>]Fact[</b><p>];Connect:Enterprise UNIX, Release 2.3.00 [<br/>] SCI87605
Was this topic helpful?
Document Information
Modified date:
17 December 2019
UID
swg21550932