Difference between revisions of "Command:Redirect"

From Lavish Software Wiki
Jump to navigation Jump to search
 
 
(6 intermediate revisions 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 commands output to a text file.
 
  
Example:
+
== 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.
  
Redirect TLO.txt TopLevelObject -list
+
== Examples ==
Will make a file named TLO.txt in your IS folder with the out put of TopLevelObject in it.
+
* 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

Syntax

Command Difficulty Rating
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

See Also