The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
retreiving and assigning values and manipulating string in a for loop
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
retreiving and assigning values and manipulating string in a for loop
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
06-15-2009
rakeshawasthi
Registered User
Join Date: Aug 2004
Location: India
Posts: 379
Quote:
Originally Posted by
Anteus
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}'`
rakeshawasthi
View Public Profile
Find all posts by rakeshawasthi
Find rakeshawasthi's past nominations received
Find rakeshawasthi's present nominations given