delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/10/22:03:14

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
Message-ID: <42FAB187.8020503@alltel.net>
Date: Wed, 10 Aug 2005 21:01:43 -0500
From: Ken Dibble <kdibble AT alltel DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Programatically finding value of "cygdrive" prefix
References: <42FA4604 DOT 8000507 AT tlinx DOT org> <20050810183616 DOT GA5892 AT trixie DOT casa DOT cgf DOT cx> <20050810184119 DOT GA6155 AT trixie DOT casa DOT cgf DOT cx> <42FA7608 DOT 4070501 AT serv DOT net> <42FA7C4C DOT 4010607 AT serv DOT net> <20050811012423 DOT GD10161 AT trixie DOT casa DOT cgf DOT cx>
In-Reply-To: <20050811012423.GD10161@trixie.casa.cgf.cx>
X-IsSubscribed: yes


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.
>
>cgf
>  
>
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}'

Thanks,
Ken


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