Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes between Version 4 and Version 5 of UsersGuide/Shell


Ignore:
Timestamp:
2012-03-25T22:06:35Z (8 years ago)
Author:
Martin Sucha
Comment:

Add basic info about I/O redirection

Legend:

Unmodified
Added
Removed
Modified
  • UsersGuide/Shell

    v4 v5  
    4444# tetris
    4545}}}
     46
     47== I/O redirection ==
     48
     49It is possible to redirect standard input and output of a command from/to a file using the following syntax:
     50
     51|| `from myinput.txt | command` || Will execute `command` with the input taken from file `myinput.txt` ||
     52|| `command | to myoutput.txt` || Will execute `command` with its output written to file `myoutput.txt` ||
     53|| `from myinput.txt | command | to myoutput.txt` || It is possible to redirect input and output at the same time ||
     54
     55'''Note:''' HelenOS does not support pipes yet, so running `command | command` etc. is currently not supported.