Skip to main content

Home/ DataPortability/ Group items tagged redirection

Rss Feed Group items tagged

Fabien Cadet

Using exec ((for all sorts of redirections)) @ TLDP.org, Advanced Bash Scripting - 0 views

  •  
    Save STDOUT + redirect it to STDERR : exec 6>&1 1>&2 Do some output, everything goes to STDERR. Restore STDOUT from FD 6 and close FD 6: exec 1>&6 6>&- Anything now goes back to the original STDOUT.
1 - 1 of 1
Showing 20 items per page