Preppend to a record

Filter:

PREPEND

Syntax:

PREPEND delimiter text_string delimiter

Operands:


delimiter :: any character not used in the change strings
text_string :: any string of characters

Functional Description:

Use the PREPEND stage to append a supplied string of characters onto the beginning of each record in the input stream. PREPEND reads records from its primary input stream. The prepended string is taken from the supplied parameter.

Secondary Input/Output:

None

Synonyms:

none

Usage Notes:

The following example will prepend the string 'ABCD' to all records of the input stream.

< /home/temp/file1.txt | prepend /ABCD/ | > new.txt

The following example will prepend the string ' A B C D ' to all records of the input stream.

< /home/temp/file1.txt | prepend / A B C D / | > new.txt


JAVA Pipelines

Cullen Programming logo