On 26 February 2013 23:45, [email protected] <[email protected]> wrote: > I am using a script where I check if /home and /backup are present in > /etc/mtab but can't manage the 'and' operator in grep.
Just came across this one.
if mountpoint -q /home; then
echo "/home is mounted"
fi
if mountpoint -q /backup; then
echo "/backup is mounted"
fi
No hassles, no grep, no -Ecw... :-)
Binand
--
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

