Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Oct 2004 13:08:42 +0200
From:      Uros <uros@sir-mag.com>
To:        freebsd-questions@freebsd.org
Subject:   mount smbfs
Message-ID:  <2610589165.20041012130842@sir-mag.com>

next in thread | raw e-mail | index | archive | help
Hello!

I want to know how to add options in /etc/fstab for smbfs mount. I would
like to add fmask dmask or -f -d

And some other thing. I have command

awk -- '/^# \/.*[[:space:]]+smbfs[[:space:]]+/ { print $2,$3 }' /etc/fstab

I want that output is set to some array. If I use

vols=`awk -- '/^# \/.*[[:space:]]+smbfs[[:space:]]+/ { print $2,$3 }'
/etc/fstab`

and then

for vol in ${vols}; do
    echo "$vol"
done

output is separeted by space, but i want $2 and $3 to be in one row so I
can execute mount command


-- 
Best regards,
 Uros



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2610589165.20041012130842>