delorie.com/archives/browse.cgi | search |
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: | "Hannu E K Nevalainen" <_garbage_collector_ AT telia DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: "which" command does not expand "~" in path |
Date: | Mon, 27 Sep 2004 21:30:23 +0200 |
Message-ID: | <NGBBLLIAMFLGJEOAJCCEGENHDOAA._garbage_collector_@telia.com> |
MIME-Version: | 1.0 |
In-Reply-To: | <Pine.GSO.4.61.0409271347370.13693@slinky.cs.nyu.edu> |
X-IsSubscribed: | yes |
you wrote: >>>> script). Igor -- >>> >>> $ u="Hannu";sed -nre "s/^$u.*:(.*):.*$/\1/p" </etc/passwd > > This works only because "/" is not a valid variable name. :-p Ehm.. ;-P - could that be called a lucky shot? /Hannu E K Nevalainen, B.Sc. EE Microcomputer systems --72--> ** mailing list preference; please keep replies on list ** -- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); -- --END OF MESSAGE-- -- 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 |