Differences between current version and predecessor to the previous major change of BashNotes.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 60 Last edited on Wednesday, August 29, 2012 3:23:27 am by AlastairPorter
Older page: version 59 Last edited on Wednesday, August 27, 2008 6:49:29 am by AdrianHo Revert
@@ -127,8 +127,14 @@
 The following first sends stdout to <tt>/dev/null</tt>, and then sends stderr to where stdout is now pointing (ie sends both to <tt>/dev/null</tt>, which is probably not what you want for redirection, but it's excellent for getting silent output from a command): 
 somecommand >/dev/null 2>&1 
+As an alternative, to send both stdout and stderr to the same place you can use the <tt>&></tt> redirector:  
+somecommand &>/dev/null  
 See CshProgrammingConsideredHarmful for some trickier examples.