public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Cyrille Lefevre <cyrille.lefevre-lists@laposte.net>
Cc: cygwin@cygwin.com
Subject: Re: Finding junction points
Date: Mon, 07 Feb 2011 19:46:00 -0000	[thread overview]
Message-ID: <4D504C02.9090506@laposte.net> (raw)
In-Reply-To: <19792.18244.175041.754011@consult.pretender>


Le 07/02/2011 20:25, Jeffrey J. Kosowsky a écrit :
> 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=$2="";sub(/^ 
+/,"");d=$0;next}/JONCTION/{sub(/.*<JONCTION> +/,"");sub(/\[/, "-> 
");sub(/\]$/, ""); print d "\\" $0}'

Regards,

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

  reply	other threads:[~2011-02-07 19:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-07 18:04 Jeffrey J. Kosowsky
2011-02-07 19:19 ` Cyrille Lefevre
2011-02-07 19:26   ` Jeffrey J. Kosowsky
2011-02-07 19:46     ` Cyrille Lefevre [this message]
2011-02-07 19:59       ` Jeffrey J. Kosowsky
2011-02-07 20:05         ` Jeffrey J. Kosowsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D504C02.9090506@laposte.net \
    --to=cyrille.lefevre-lists@laposte.net \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).