Programatically finding value of "cygdrive" prefix
Eric Blake
ericblake@comcast.net
Thu Aug 11 14:47:00 GMT 2005
> > 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/
More information about the Cygwin
mailing list