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

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to