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-li...@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 via email to