Skip to main content
/
DataPortability
/
Group items tagged redirection
Group items tagged
Filter:
All
|
Bookmarks
|
Topics
Simple
Middle
1
More
Using exec ((for all sorts of redirections)) @ TLDP.org, Advanced Bash Scripting
- 0 views
www.tldp.org/...x17974.html
Bash
shell
script
redirection
shared by
Fabien Cadet
on 25 Aug 14
-
No Cached
Fabien Cadet
on 25 Aug 14
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.
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.
...
Cancel
...
Cancel
1
-
1
of
1
Showing
20
▼
items per page
20
50
100
Related searches
Search
redirection
matching in title, tags, annotations and url of group items »
Search in Google »