Difference between revisions of "Command:Redirect"
Jump to navigation
Jump to search
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | <small>Not to be confused with Dog</small> | ||
+ | == Syntax == | ||
+ | {{CMD-DR|Redirect|Intermediate|Intermediate|Intermediate|Beginner}} | ||
Redirect [-append] <Filename> <Command> | Redirect [-append] <Filename> <Command> | ||
− | Redirects a | + | |
+ | == Description == | ||
+ | Redirects output of a single command to a text file in the LavishScript "Current Working Directory". Appends to the file if the -append switch is given; otherwise, any existing file with the given name is replaced. | ||
== Examples == | == Examples == | ||
+ | * Redirect TLO.txt TopLevelObjects | ||
+ | : Creates a file named TLO.txt with the output of the TopLevelObjects command | ||
− | + | == See Also == | |
+ | *[[LavishScript:Commands|Commands]] | ||
− | + | {{Command-Stub}} | |
+ | [[Category:LavishScript]] | ||
+ | [[Category:LavishScript Commands]] |
Latest revision as of 07:26, 23 June 2005
Not to be confused with Dog
Contents
Syntax
Redirect | |
Usage | Intermediate |
Level of Understanding | Intermediate |
Computer Savvy | Intermediate |
Logic | Beginner |
Redirect [-append] <Filename> <Command>
Description
Redirects output of a single command to a text file in the LavishScript "Current Working Directory". Appends to the file if the -append switch is given; otherwise, any existing file with the given name is replaced.
Examples
- Redirect TLO.txt TopLevelObjects
- Creates a file named TLO.txt with the output of the TopLevelObjects command