The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #9 (permalink)  
Old 12-04-2008
radoulov's Avatar
radoulov radoulov is online now Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,892
Quote:
Originally Posted by chebarbudo View Post
[...]
What is <<<? Is this a way of doing echo?
Here string. It's not available in all shells.
For more information search your shell manpages for Here Strings.

Quote:
I understand the tr -d but what does 2>&- means?
redirect errors to &-? What is &-?
2>&- closes the file descriptor 2. This is a bad practice and you should avoid it. My post was for illustration purposes only.