delorie.com/archives/browse.cgi | search |
On Wed, Aug 10, 2005 at 09:01:43PM -0500, Ken Dibble wrote: >Christopher Faylor wrote: >>On Wed, Aug 10, 2005 at 03:14:36PM -0700, L Anderson wrote: >>>Oops! I meant also to add that >>> >>>mount -p | sed -nr '2s/(.*) +\S+ +\S+/\1/p' >>> >>>is even a shorter version. >> >>And it still includes trailing spaces in the eventual result. > >In my attempt to understand, can you tell me where (and why) this would >fail? > >mount -m | grep "mount -u" | tail -1 | awk '{print $5}' It doesn't deal with imbedded spaces in the cygdrive prefix -- i.e., the point of this exercise. cgf -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |