X-Recipient: archive-cygwin@delorie.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.lefevre-lists@laposte.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@cygwin.com
Subject: Re: Finding junction points
References: <19792.13316.462354.112225@consult.pretender>	<4D5045B8.3080209@laposte.net> <19792.18244.175041.754011@consult.pretender>
In-Reply-To: <19792.18244.175041.754011@consult.pretender>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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.Lefevre-lists@laposte.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

