I want to isolate the drives in /proc/partitions (i.e. sda, sdb, etc.) for
another task (something other than echo :) ) but my test either returns
nothing or everything and the kitchen sink, depending on whether I use a !=
or == comparator...

for disk in `cat /proc/partitions | awk '{print $4}'|sed '1,2d'`
>     do
>         if [ $disk == sd[a-z] ] then
>             echo $disk
>         fi
> done


I know the 'cat' line gives me the raw data I want, it's the filter below
that's broken.  I know it has to be something painfully simple, they
typically are.

Any ideas?

Thanks in advance!

-- 
Bradley Willson
(Mobile) 425.891.2732, (Skype) 425.296.1687
Es ist ein neuer Tag!

Reply via email to