Programatically finding value of "cygdrive" prefix

Gary R. Van Sickle g.r.vansickle@worldnet.att.net
Thu Aug 11 11:34:00 GMT 2005


[snip]
> Still searching for a non-sed solution Ken hammered out:
> 
> So this would be correct?
> 
> mount -m |  grep "mount -u" | tail -1  | awk -F'"' '{ print $2 }'
> 
> as
> echo 'mount -s -b --change-cygdrive-prefix "/thing with 
> spaces"'  | awk -F'"' '{ print $2 }'
> results in
> /thing with spaces
> 
> Ken

I don't follow; why not just use sed and be done with it?  Sed is good at
regex, and regex is the best solution to this problem.  Give to Caesar what
is Caesar's, sez I.

-- 
Gary R. Van Sickle
 


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