Hi ,
Here iam back with my original problem.
Yeh ur suggestion did help me a lot but am lost again ( Due to my poor knowledge of AWK )
Well my script basically runs the netstat command and loops through the network interfaces available( except the LO interface)
Here is how my script looked ( a section ie
command_interface="netstat -i | awk '/en/ && $1 !=prev {print $1; prev=$1}'"
#Looping through the Interfaces
while ((command_interface | getline) > 0)
Now i take the o/p from the above mentioned command ( the o/p will be en0, en1, en2, etc etc) and give it to another long command. But the problem is iam unable to concatenate strings!!
so i cant do following
command1="my-command $0 -d"
Above i had assumed that in the above variable ie; command1,$0 will be substituted with the o/p of the first while-getline combo.
I hope u got my point ! in other words :
mystring=some-string-without-double-inverted-comma
how do i merge the content of above mentioned variable in
some other string ?
Can u help me out ?
Regards,
Xanthium.