Free Download

Installation Instructions



Ask A Question



Lesson 1















Automated Internet

Automated Editors

Sample Scripts

Precompiled Functions

System Features

  Help Page - output

( Some help pages may not display correctly in html because those help pages may have sample code
in them, part of which may be mis-interpreted as html tags.

All help pages, including this help page, are available in biterScripting with the help command. )

System Feature Output Stream Redirection Purpose Redirection of contents of output streams Syntax [h]> <file> | $<str_var_name> | { <inline_command> } | NULL [h]>> <file> | $<str_var_name> | { <inline_command> } | NULL Arguments <file> Name or path of a file to which output is to be written. It can be a name relative to the current directory, or full path name. <str_var_name> Name of a string variable to which output is to be written. The variable must be declared prior to its use. Also, the variable must of type str. <inline_command> The output of the inline command specifies the redirection target. NULL Output will be ignored. Description The output stream is written to the redirection target after processing the current command. If a single > is used, the original contents of redirection target will be erased. This is called overwrite mode. If a double >> is used, the original contents of redirection target will be preserved and the output from current command will be appended to the original contents. This is called append mode. If an h (lower case letter h) is specified immediately before the > or >>, the data is assumed to be in hexadecimal representation, and it will be converted to binary bytes before writing the data. If file does not exist, it will be created. If NULL is used, output will be ignored (and never written anywhere). Restrictions Redirection is not allowed in the following commands. function return end set if else endif while do done If redirection is specified on these commands, it will be ignored. If inline command is used for redirection, it must result in one (and only one) file name or variable name. Valid Examples len myfile.cpp > outfile.txt Count of lines in myfile.cpp will be written to outfile.txt. The original contents of outfile.txt, if any, will be lost. len myfile.cpp >> outfile.txt Count of lines in myfile will be appended to the original contents of outfile.txt. Consider the following commands. var str s echo "616263" > $s echo $s Will produce "616263". Now, consider this scenario instead. echo "616263" h> $s #<<<======== Notice hex redirection. echo $s The above will produce "abc" because "616263" is hex representation of "abc" and the command's output is redirected in hex mode. Invalid Examples set $wordCount=100 > countFile.txt Will produce an error. Redirection is not allowed in set command. If the intention is to set $wordCount to 100 and also write that same value to countFile.txt, the following will work. set $wordCount=100 ; echo $wordCount > countFile.txt See Also stream inline input error

2008-2013, All rights reserved.
biterScripting, biterScript, biterBrowser, biterMobile,, FVA (Forward Variable Assignment) are trademarks of Is it biterScripting-compatible ? is a service mark of Explorer, Unix, Windows are trademarks, service marks or other forms of intellectual property of their respective owners.