The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Unable to assign value to variable using awk coz of whitespace in value
.
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
:
Unable to assign value to variable using awk coz of whitespace in value
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
03-23-2009
chengamsiva
Registered User
Join Date: Mar 2009
Location: bangalore,india
Posts: 2
Hi,
Now Replace
your line :user_prog_name=$(echo ${line} | awk '{print $3}')
by :user_prog_name=$(echo ${line} | awk '{for (a = 3; a <= NF; a++) print $a }')
chengamsiva
View Public Profile
Find all posts by chengamsiva
Find chengamsiva's past nominations received
Find chengamsiva's present nominations given