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 -->
  #17 (permalink)  
Old 01-02-2009
kazazza kazazza is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 9
Thanks PMM that worked great!

I'm trying to improve this now, so that it doesn't greet everyone as "Mr." So I've made a variable called "title" (referring to Mr. Mrs. etc) my ONLY problem now is that i don't know how to order the command. This is what i have atm:

echo $name | awk '{print"Hello $title " $NF}'

I've tried putting the $title bit in different places, but no luck....

Thanks for all your help everyone.

Phil