How to handle large number of disk devices in "arbitrary" order?
Holger Parplies
wfai at parplies.de
Fri Nov 18 02:49:18 CET 2011
Hi,
Carsten Aulbert wrote on 2011-11-17 08:39:45 +0100 [Re: How to handle large number of disk devices in "arbitrary" order?]:
> [...]
> If so, should not any trailing /-part[0-9]+/ be cut out/ignored from the
> potential list of candidates? E.g. (fully untested, just random idea)
>
> my @candidates = ();
> for (glob($disk)) {
> push @candidates unless /-part[0-9]+$/;
> }
talking of 'perlish', isn't that
my @candidates = grep { not /-part[0-9]+$/ } glob($disk);
? ;-)
Regards,
Holger
More information about the linux-fai
mailing list