The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #8 (permalink)  
Old 12-04-2008
chebarbudo's Avatar
chebarbudo chebarbudo is offline
Registered User
  
 

Join Date: Nov 2008
Location: various
Posts: 188
Quote:
Originally Posted by radoulov View Post
And what's wrong with Franklin52's solution?
Absolutely nothing, I was working on it while you posted this solution.
It looks great exept that as a newbie, I don't fully understand the syntax
Quote:
Originally Posted by radoulov View Post
Code:
$ cat s
#! /bin/bash
tr 2>&- -d "$2"<<<"$1"
What is <<<? Is this a way of doing echo?
I understand the tr -d but what does 2>&- means?
redirect errors to &-? What is &-?
Thanks for your help.
Santiago