This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]