delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/02/07/14:46:42

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,MISSING_HEADERS,RCVD_IN_DNSWL_LOW,SARE_FREE_WEBM_LAPOSTE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4D504C02.9090506@laposte.net>
Date: Mon, 07 Feb 2011 20:46:10 +0100
From: Cyrille Lefevre <cyrille DOT lefevre-lists AT laposte DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666
MIME-Version: 1.0
Cc: cygwin AT cygwin DOT com
Subject: Re: Finding junction points
References: <19792 DOT 13316 DOT 462354 DOT 112225 AT consult DOT pretender> <4D5045B8 DOT 3080209 AT laposte DOT net> <19792 DOT 18244 DOT 175041 DOT 754011 AT consult DOT pretender>
In-Reply-To: <19792.18244.175041.754011@consult.pretender>
X-me-spamlevel: not-spam
X-me-spamrating: 46.060608
X-me-spamcause: OK, (30)(0000)gggruggvucftvghtrhhoucdtuddrfeduvddrudduucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtnecumhhishhsihhnghcuvffquchfihgvlhguucdlfedtmd
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Le 07/02/2011 20:25, Jeffrey J. Kosowsky a =C3=A9crit :
> Yes - that is one of my two problems:
> 1. It gets messed up on loops created by its own junctions
> 2. The format of the output is a bit difficult to parse since you have
>     to go back up to see what directory you are in.
>
> Ideally, I would like to have the output in 2-columns like:
> source1   target1
> source 2  target2
> etc.

something like this ?

cmd /c dir /a:l /n | awk '/^ /{$1=3D$2=3D"";sub(/^=20
+/,"");d=3D$0;next}/JONCTION/{sub(/.*<JONCTION> +/,"");sub(/\[/, "->=20
");sub(/\]$/, ""); print d "\\" $0}'

Regards,

Cyrille Lefevre
--=20
mailto:Cyrille DOT Lefevre-lists AT laposte DOT net



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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