Using the > or >> Characters to Specify Output Files in UNIX - Basic Teradata Query

Basic Teradata Query Reference

Product
Basic Teradata Query
Release Number
16.00
Published
November 2016
Language
English (United States)
Last Update
2018-04-25
dita:mapPath
hyz1479325149183.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
B035-2414
lifecycle
previous
Product Category
Teradata Tools and Utilities

Use the > and >> characters to specify output files in a UNIX environment, as follows:

Redirection Operator Filename State Results
> (single character) New The new file is created as the standard output file.
> (single character) Existing The existing file is overwritten with new records.
>> (double characters) New The new file is created as the standard output file.
>> (double characters) Existing The new records are added to the end of the existing file.
The >& and >&1 redirection syntax can be used to specify the name of a new file to be created for both standard output and error messages.