From: bob123 on
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

Thanks



From: Barry Margolin on
In article <4b2fe280$0$23022$426a34cc(a)news.free.fr>,
"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
>
> Thanks

for name in $(awk '{print $4}' filename); do
...
done

--
Barry Margolin, barmar(a)alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
From: Stephane CHAZELAS on
2009-12-21, 22:02(+01), bob123:
[...]
> 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
[...]

awk '{whatever with $4}'


--
St�phane
From: bob123 on
>
> for name in $(awk '{print $4}' filename); do
> ...
> done
>

OK Thanks
but the pb is for CBSU09 TEMPO
I need name='CBSU09 TEMPO'
and not CBSU09


From: bob123 on

>
> awk '{whatever with $4}'
>
>
> --
OK Thanks
but the pb is for CBSU09 TEMPO
I need name='CBSU09 TEMPO'
and not CBSU09