From owner-freebsd-questions@FreeBSD.ORG Tue Oct 12 11:10:40 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E94BC16A4CE for ; Tue, 12 Oct 2004 11:10:40 +0000 (GMT) Received: from citka.mg-proline.si (citka.sir-mag.com [212.18.32.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4171643D41 for ; Tue, 12 Oct 2004 11:10:40 +0000 (GMT) (envelope-from uros@sir-mag.com) Received: from localhost (localhost [127.0.0.1]) by citka.mg-proline.si (Postfix) with ESMTP id 435437067E for ; Tue, 12 Oct 2004 13:10:38 +0200 (CEST) Received: from citka.mg-proline.si ([127.0.0.1]) by localhost (citka.mg-proline.si [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 69560-02 for ; Tue, 12 Oct 2004 13:10:25 +0200 (CEST) Received: from UROS (BSN-77-34-194.dsl.siol.net [193.77.34.194]) by citka.mg-proline.si (Postfix) with ESMTP id 6DE787067D for ; Tue, 12 Oct 2004 13:08:45 +0200 (CEST) Date: Tue, 12 Oct 2004 13:08:42 +0200 From: Uros X-Priority: 3 (Normal) Message-ID: <2610589165.20041012130842@sir-mag.com> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mg-proline.si Subject: mount smbfs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Uros List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 11:10:41 -0000 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