Help for this page

Select Code to Download


  1. or download this
    > { echo out; echo err >&2; } >f1 2>&1
    > cat f1
    ...
    err
    > cat f1
    out
    
  2. or download this
    > perl -e'print "print\n"; warn "warn"' >f1 2>&1
    > cat f1
    ...
    warn at -e line 1.
    > cat f1
    print