From: Dave Gibson on
bob123 <bob123(a)gmail.com> wrote:
> Hi,
>
> How to set a loop on CBSU16 ...CBSU09 from the output below:
>
> Storage Group Name: CBSU16
> Storage Group Name: CBSU22
> Storage Group Name: CBSU13
> Storage Group Name: CBSU12
> Storage Group Name: CBSU01
> Storage Group Name: CBSU07
> Storage Group Name: CBSU09 TEMPO
> Storage Group Name: CBSU21
> Storage Group Name: CBSU09

while read junk1 junk2 junk3 datum ; do
echo "$datum"
done
From: mik3 on
On Dec 22, 6:49 pm, "bob123" <bob...(a)gmail.com> wrote:
> > awk '{whatever with $4}'
>
> > --
>
> OK Thanks
> but the pb is for CBSU09 TEMPO
> I need name='CBSU09 TEMPO'
> and not CBSU09

then you change the delimiter to ":" using -F":", and then use $2.
From: bob123 on
OK Thanks

"mik3" <mik3l3374(a)gmail.com> a �crit dans le message de news:
e33b3236-d37e-409a-9316-405d273caf2f(a)r24g2000prf.googlegroups.com...
On Dec 22, 6:49 pm, "bob123" <bob...(a)gmail.com> wrote:
> > awk '{whatever with $4}'
>
> > --
>
> OK Thanks
> but the pb is for CBSU09 TEMPO
> I need name='CBSU09 TEMPO'
> and not CBSU09

then you change the delimiter to ":" using -F":", and then use $2.


From: Hongyi Zhao on
On Tue, 22 Dec 2009 04:01:54 -0800 (PST), mik3 <mik3l3374(a)gmail.com>
wrote:

>then you change the delimiter to ":" using -F":", and then use $2.

Perhaps you should use -F": " as the delimiter, by this way you can
trim the leading whitespaces from that line.

Best regards.
--
..: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.