Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'This output is practically meaningless' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
This output is practically meaningless
Authored by: Lectrick on Feb 15, '06 04:32:50PM

Actually, technically, the output of this is wrong, as the lines are completely meaningless. Compare the output of this to the output of the "tree" command (i installed it with darwinports, it's fast!) for any directory a few layers deep and you'll see that the "left continuation lines" are in multiple layers and actually indicate everything that is still in the same folder (as opposed to this one-liner where they are just decorative). It's actually tough to keep track of that kind of thing using a one-liner.

In /dev/null, no one can hear you scream

[ Reply to This | # ]
This output is practically meaningless
Authored by: jacobolus on Feb 15, '06 08:43:56PM

what do you mean the lines are wrong? Every "--" represents a new level. All that it would take to make the output about the same would be to replace strings of more than two --'s with vertical pipe symbols instead of hyphens. This is hardly difficult... just pipe the result fo this back into sed, or modify the original a bit.

[ Reply to This | # ]