Unix questions - AWK question

This is Interesting: Free IT Magazines  
Home > Archive > Unix questions > August 2006 > AWK question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author AWK question
pawan_test

2006-08-09, 7:22 pm

Hi All,

I have a question,

I have a data coming through like this;

Problem='A' , 'B' , 'C' , 'D' , 'F' , 'G' , 'H' , 'I' , 'J' , 'K' , 'L'

When I use awk like this;

echo $Problem |awk -F, '{print $1}'
I see only 'A' on the command line.

I am trying to put the variable Problem in a loop so that I can print
one by one like this ;
'A',
'B',
'C',
'D',
....
'L'

Can anyone please give me suggestion.

Thanks

pavi

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com