Subject: Re: Programatically finding value of "cygdrive" prefix
From: [email-masked] (Eric Blake)
To: [email-masked], [email-masked]
Cc: Sam Steingold <[email-masked]>
Date: Thu, 11 Aug 2005 14:47:29 +0000

> > mount -p | sed -nr '2s,/([^ ]) +\S+ +\S+$,\1,p'
> 
> that's what I also tried before sending my e-mail.
> it does not print anything.
> 

Oh right, I missed a + to make \1 be more than one character:

mount -p | sed -nr '2s,/([^ ]+) +\S+ +\S+$,\1,p'

--
Eric Blake

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/