[Gllug] Bash Question - My Brain's not working tonight

Tethys sta296 at astradyne.co.uk
Mon Aug 27 18:15:09 UTC 2007


--------

Ken Smith writes:

>> 	mount | grep -q "$( echo "//$1/$2" | sed -e 's/\$/\\$/g' )"
>>
>> The -q is there because you don't want to see what it finds.
>>   
>Thank you, that worked. I need to re-read the man page on sed

...or just read fgrep(1).

Tet
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list