Difference between revisions of "Command:Redirect"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
Redirects a commands output to a text file.
+
<small>Not to be confused with Dog</small>
 
 
 
== Syntax ==
 
== Syntax ==
 +
{{CMD-DR|Redirect|Intermediate|Intermediate|Intermediate|Beginner}}
 
Redirect [-append] <Filename> <Command>
 
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 ==
 
== Examples ==
 +
* Redirect TLO.txt TopLevelObjects
 +
: Creates a file named TLO.txt with the output of the TopLevelObjects command
  
Redirect TLO.txt TopLevelObject
+
== See Also ==
 +
*[[LavishScript:Commands|Commands]]
  
Will make a file named TLO.txt in your IS folder with the output of TopLevelObject in it.
+
{{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