> > 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/

Reply via email to