delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/11/07:34:35

Message-Id: <200508111134.j7BBYYjH021208@delorie.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net>
To: <cygwin AT cygwin DOT com>
Subject: RE: Programatically finding value of "cygdrive" prefix
Date: Thu, 11 Aug 2005 06:34:45 -0500
MIME-Version: 1.0
In-Reply-To: <42FB30A8.6020509@alltel.net>
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019