Thanks for reply.
I want the output like
TEST
TEST1
TEST2
So that I'can have these values in a variable then I can use it.
Actually in solris server I had the command like "pget.awk
SECTION=ENV_GROUP_LIST PARAM=ENV_GROUP..........
Do we have a similar kind of or another awk so that I get the similar
output.
Thanks
Ritesh
> I copied this data in a file called f1 and did *var=$(awk -F'=' '{print
> $2}' file)*
>
> Output of echo $var is TEST1 TEST2 TEST3.
>
> Is that the output desired by you?
>
>
>
>
>
> On Wed, Dec 28, 2011 at 9:20 PM, Ritesh <
rpande...@gmail.com> wrote:
> > Hi All,
>
> > I've a file env.ini in the following format
>
> > [ENV_GROUP_LIST]
> > ENV_GROUP=TEST1
> > ENV_GROUP=TEST2
> > ENV_GROUP=TEST3
>
> > I want to read the file in a such a way that I get only TEST, TEST1,
> > TEST2 in a list format in a variable. I am trying to do it with the
> > help of awk. Any help will be greatly helpful.
>
> > Thanks
> > Ritesh
>
> > --
> > Please readhttp://
www.catb.org/~esr/faqs/smart-questions.htmlbefore
> > posting.
> > You received this message because you are subscribed to the "Vibrant
> > GNU/Linux User Group".
> > To stop receiving emails from this group, mail to
> >
VGLUG+un...@googlegroups.com
> > To post to this group, send email to
VG...@googlegroups.com
> > For more options, visit this group athttp://
groups.google.com/group/VGLUG
>
> --
> Regards
>
> Dharmit Shah <
http://about.me/dharmit>- Hide quoted text -
>
> - Show quoted text -