Re: [Fwd: raidtools2 "bug" + fix]
Matthijs Mohlmann <matthijs@cacholong.nl> wrote:
>
> Well the following guy is having trouble with it and i can't get it why
> it failed on his place. I've here a suitable setup and using also
> raidtools2 and all is going ok. It's about this expression:
>
> RAIDDEV=$(awk '/^[:blank:]*raiddev/ {print " " $2}' /etc/raidtab)
>
> This expression should get all the second arguments of lines beginning
> with raiddev. Can someone point me what's here failing ?
I don't know awk very well, but according to regex(7), shouldn't it be
[[:blank:]]:
frank@alhambra:~$ awk '/^[[:blank:]]*\/proc/ {print " " $2}' /etc/fstab
frank@alhambra:~$ awk '/^[:blank:]*proc/ {print " " $2}' /etc/fstab
/proc
/var/local/chrootsid/proc
frank@alhambra:~$ awk '/^[[:blank:]]*proc/ {print " " $2}' /etc/fstab
frank@alhambra:~$
Regards, Frank
--
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie
Reply to: