next up previous contents
Next: 2.3 = Up: 2. General commands Previous: 2.1 #

2.2 @

@<filename> [<argument> ...]


Any list of valid commands can be written to an ASCII file and and indirectly by the command:

prompt > @<name>
The commands must start in the left most column of the file and are otherwise executed as typed. Macro files may call other macro files up to a level defined at installation. This is not a call in the sense of calling a function. All variables are identical at all levels of macro file nesting.

Macro files can be written by any editor on your system or be generated by the ==> 'learn' command. 'learn' starts to remember all the commands that follow and saves them into the file given on the 'learn' command. The learn sequence is terminated by the 'lend' command. The default extension is ".mac"

Optionally arguments can be listed on the command line. These arguments will replace the formal parameters inside the macro. The formal parameters must be given as "$1", "$2" ... The string <argument> will replace the string "$1". "$1" is the first argument on the command line, "$2" the second and so on. If there are not enough command line arguments, an error message is displayed.


next up previous contents
Next: 2.3 = Up: 2. General commands Previous: 2.1 #
Thomas Proffen {Billinge}
1999-07-20