[linux] scripting newbie
Lubomir Host
rajo na Idea.Platon.SK
Čtvrtek Červen 17 12:31:15 CEST 2004
On Thu, Jun 17, 2004 at 03:06:47AM +0200, Tomas Zatko wrote:
> #!/bin/sh
> # /etc/init.d/captive: mount or umount the captive-ntfs
> # Written by WooDy
>
> export MOUNT_DEV=`grep ntfs /etc/fstab| awk '{ print $1 }'`
> export MOUNT_POINT=`grep ntfs /etc/fstab| awk '{ print $2 }'`
jednoduchsie a rychlejsie:
export MOUNT_DEV=`awk '/ntfs/ { print $1 }' /etc/fstab`
--
Lubomir Host 'rajo' <rajo AT platon.sk> ICQ #: 257322664
Platon Software Development Group http://platon.sk/
http://www.gnu.org/philosophy/no-word-attachments.html
Další informace o konferenci linux