Hello.
On Mon 2002-10-28 at 10:18:23 -0500, Charles A Edwards wrote:
> On 28 Oct 2002 16:00:19 +0100
> Guillaume Cottenceau <[EMAIL PROTECTED]> wrote:
>
> > You need to do a little work if you want it to be fixed! Don't
> > expect me to do everything. Have you tried to run the awk command
> > I've give? What does it give?
>
> Sorry.
> I did not mean for it to appear that I was expecting you to do
> everything.
> Any and all help you can offer/suggest is greatly appreciated.
>
> # awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $3; }}' /etc/fstab
Just a small comment: the part "[ \t]*" is redundant. By using $1, awk
already skipped whitespaces. So, it should rather be
awk '{ if ($1 !~ /^#/ && $2 == "/") { print $3; }}'
or
awk '{ if ($0 !~ /^[ \t]*#/ && $2 == "/") { print $3; }}'
Regards,
Benjamin.
msg80651/pgp00000.pgp
Description: PGP signature
