need bash help for multiple line test
- From: Todd <Todd@xxxxxxxxxxxxxxx>
- Date: Mon, 30 Jul 2012 22:24:23 -0700
Hi All,
In bash script, if I have a variable that looks like
echo $A
/dev/sda2
/dev/sda2
/dev/sdb1
/dev/sdb3
and I want to test each one for the existence of
a type of partition, stopping at the first instance
of what I want, how would I write such a thing?
Is there a way to do readline on a variable?
Many thanks,
-T
.
- Follow-Ups:
- Re: need bash help for multiple line test
- From: Todd
- Re: need bash help for multiple line test
- Prev by Date: how can I tell if a partition is a luks partition?
- Next by Date: Re: how can I tell if a partition is a luks partition?
- Previous by thread: how can I tell if a partition is a luks partition?
- Next by thread: Re: need bash help for multiple line test
- Index(es):
Relevant Pages
|