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 > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: Awk Command
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #13 (permalink)  
Old 12-30-2008
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,954
Quote:
Originally Posted by Gayucvns View Post
Hi,

the awk command is very useful to print the last name. only the syntax matters. Jst try with this
echo $name | awk '{print "Hello Mr." $2}'
and that is what [ krishmaths ] posted already