The UNIX and Linux Forums  


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 -->
  #10 (permalink)  
Old 12-29-2008
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,958
Quote:
Originally Posted by krishmaths View Post
Your approach is right. Just needs a little bit of tweaking in the awk syntax.


Code:
echo "Please enter your full name:"
read name
echo $name | awk '{print"Hello Mr." $2}'
that should be $0 instead of $2