01-14-2008
163,
0
Join Date: Jan 2008
Last Activity: 23 May 2011, 9:23 AM EDT
Posts: 163
Thanks Given: 10
Thanked 0 Times in 0 Posts
Please help very urgent
Hi,
I have a script as below.
name="file1"
.........
............
awk '/$name/ {print $1$2}' a.sh > b.sh
What i need is to search for the content of the variable 'name' and write it to b.sh.
But the above command does't work.
Could u please help me in gettig the value of the variable name to use it in awk (as above)
Thanks in advance !!