lotus

previous page: 2.5.2 The Pipe command
  
page up: Amiga FAQ
  
next page: 2.5.4 Quick usage guide

2.5.3 Pipe command support in AmigaShell




Description

This article is from the Amiga FAQ, by Ignaz Kellerer with numerous contributions by others.

2.5.3 Pipe command support in AmigaShell

There is a little known and quite useful undocumented feature built in the 2.04+ AmigaShell, that is, AmigaShell knows about the `Pipe' command. By setting the local variable _PCHAR, you can use pipes without even entering the Pipe command. AmigaShell will prepend it on the command line automatically if it sees the pipe separator command specified by _pchar on the command line.

Thus, after the command: 1> Set _pchar "|"

(1)

the above examples can be used like this: 1> List SYS: | More or 1> List SYS: NOHEAD | Sort IN: OUT: | More

Those familiar with the UNIX pipes will notice how the usage is very similar to the UNIX pipe usage.

---------- Footnotes ----------

(1) The quotes around the vertical bar are important, to avoid AmigaShell interpreting the command as an attempt to use PIPE:, if _PCHAR is already set (for example if the Shell is started from within another one).

 

Continue to:













TOP
previous page: 2.5.2 The Pipe command
  
page up: Amiga FAQ
  
next page: 2.5.4 Quick usage guide