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 -->
  #4 (permalink)  
Old 07-17-2008
playinmel.com playinmel.com is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 3
Quote:
Originally Posted by ennstate View Post
Try something like this,

Code:
echo "Are you Bill ?" | sed 's/.* \(.*\) ?/My name is \1/g'
Thanks
Nagaraj G
Thanks, Can i just get the "name" and set it to $name , so that I can reuse $name later