This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Programatically finding value of "cygdrive" prefix
- From: ericblake at comcast dot net (Eric Blake)
- To: sds at gnu dot org, cygwin at cygwin dot com
- Cc: Sam Steingold <sds at gnu dot org>
- Date: Thu, 11 Aug 2005 14:47:29 +0000
- Subject: Re: Programatically finding value of "cygdrive" prefix
> > 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/