> I'm not a nawk expert, but I'll take you up on the
> challenge. I've got
> this so far:
>
> /usr/bin/nawk '$1 ~ /ramdisk/ {print $2}'
> </etc/mnttab
>
> but I'm not sure how to do the regular expression for
> $2 being ^/$. Doing
>
> /usr/bin/nawk '$1 ~ /ramdisk/, $2 ~ /^\/$/ {print
> $2}' </etc/mnttab
>
> doesn't work. It matches anything where $2 has a /
> anywhere. Any hints?
>
For example
/usr/bin/nawk '$1 ~ /ramdisk/ {if ($2 ~ /^\/$/) print $2}' </etc/mnttab
Cheers,
Alex
--
This message posted from opensolaris.org
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss