[lug] Tools to navigate Unix links backwards?
Walter Pienciak
wpiencia at thunderdome.ieee.org
Fri Jul 23 15:49:29 MDT 2010
On Fri, Jul 23, 2010 at 03:45:00PM -0600, Vince Dean wrote:
> On 7/23/2010 3:25 PM, Jeffrey Haemer wrote:
> > Does "tree(1)" help you?
> Yes -- that's just the sort of hint I was hoping for. This will be
> a generally useful tool.
Simple version, fairly dusty:
find . -print | sed -e 's,[^/]*/\([^/]*\)$,`--\1,' -e 's,[^/]*/,| ,g'
It's also a pretty good example of stuff that can make normal
people recoil in horror.
Walter
More information about the LUG
mailing list