On Wednesday 08 November 2006 06:57, Harald van Dijk wrote: > [[ " > $(</proc/mounts)" == *" > /dev/root "* ]] && echo "Yay, I matched ^/dev/root" > > You can use $'\n' instead of actual newline characters, of course.
You get credit :) I couldn't get that to work with bash-3.1 for some reason though, as I prefer == over =~ myself. Thanks -- Roy Marples <[EMAIL PROTECTED]> Gentoo/Linux Developer (baselayout, networking) -- gentoo-dev@gentoo.org mailing list