One : Use environment variables
Three : Have a commands result use as argument for the preceeding one.
Four : Better PIPE support
Two : Use of PIPE:In a shell:
This will result in "MyValue" being printed, sans quotes.set MyVariable "MyValue"
echo $MyVariable
Open two shell windows, in shell window 1:
This command wil seem to "hang".type PIPE:mylist
In shell window 2:
Shell window 1 will now start to print your list.list > PIPE:mylist
Three : Have a commands result use as argument for the preceeding one.
Strings enclosed by "`" characters will be executed. Try this:
This will output "15", sans quotes. The reason is that AmigaDOS will execute "eval 5+5" and use it as an argument for the first commandeval 5 + `eval 5 + 5`
Four : Better PIPE support
Five : Execute mulpile commands in one in shellDownload Andy Finkel Shell Tools from Aminet.
finkelshelltoo.lha
This, combined with the AmigaDOS 2.04+ feature of setting the private environment variable "_pchar" will do magic for us. the important command in the LHA archive is pipe, but they are all quite cool.
Add to S:User-Startup:
Now test it out in shell:set _pchar="|"
Now your directory is displayed with the more command, and you have to press space for pages if your console isn't huge enough to list it at oncelist |more
Six : Tab completionIn a shell enter:
This should output:echo 1 , echo 2
Now, enter in the same shell:1 , echo 2
This will outputset _mchar=","
echo 1 , echo 2
Common values for _mchar are "&&" or "\". I used "," because I felt like it.
Seven : File outpuInstall KinCON.
KingCON_1.3.lha
Eight : Command alias'> and >> Are used to direct output from commands to files.
Will create a new file with the contents from List command, overwrite a file that's thereList > ram:list.txt
Will append to a file that's there, or create it if it's not.List >> ram:list.txt
You can make short hand version of often used commands
This will outputalias e echo []
e Hello World
The "[]" goes to indicate where the arguments should be putHello World
Last edited: