The UNIX and Linux Forums  


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 -->
  #2 (permalink)  
Old 06-15-2009
rakeshawasthi rakeshawasthi is offline
Registered User
  
 

Join Date: Aug 2004
Location: India
Posts: 379
Quote:
Originally Posted by Anteus View Post
Sam$n=$(`echo $line |awk -F" " {print $5}' |awk -F":" '{print $2}'`)
You can not do like this... $ should not come on the left side.
This will work...

Code:
Sam=`echo $line |awk -F" " {print $5}' |awk -F":" '{print $2}'`