On 26 February 2013 23:45, gnulinuxist@gmail.com gnulinuxist@gmail.com 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