Thread View: comp.unix.sys5.misc
3 messages
3 total messages
Started by John Oneill
Tue, 29 Sep 1992 01:55
dir tree program
Author: John Oneill
Date: Tue, 29 Sep 1992 01:55
Date: Tue, 29 Sep 1992 01:55
16 lines
1178 bytes
1178 bytes
This may not be the place but...
I am looking for a dir tree program that will traverse the directory
tree of a system and put this info into some sort of neet form.
I have just taken a sysadmin job and would like to know where
what, is. Without doing it myself.
I hope someone can help.
-----------------------------------------------------------------------
John O'Neill University of Illinois
e-mail johno@lees.cogsci.uiuc.edu at Urbana-Champaign
-----------------------------------------------------------------------
Things do not change; we change.
-- Henry David Thoreau
-----------------------------------------------------------------------
Re: dir tree program
Author: "Educated bags" Neilski
Date: Tue, 29 Sep 1992 08:52
Date: Tue, 29 Sep 1992 08:52
30 lines
1397 bytes
1397 bytes
johno@boas.cogsci.uiuc.edu (John Oneill) writes:
>This may not be the place but...
Not really ... (crossposted to alt.sources, followups to alt.sources.d)
>I am looking for a dir tree program that will traverse the directory
>tree of a system and put this info into some sort of neet form.
>I have just taken a sysadmin job and would like to know where
>what, is. Without doing it myself.
This appeared in UnixWorld a couple of years ago.
#!/bin/sh
# @(#) dtree - prints a directory tree
dir=${1:-.}
(cd $dir ; pwd)
find $dir -type d -print | sort -f |
sed -e "s,^$1,," -e "/^$/d" -e \
"s,[^/]*/\([^/]*\)$,\`-----\1," -e "s,[^/]*/, | ,g"
-- neilski
--
nrp@csug.cs.reading.ac.uk \--------------------------------------------------
----------------------------\ Woke up this morning, out of bed I leaped,
Banged my head on the ceiling and I went straight back to sleep... -- Dylan
Re: dir tree program
Author: Bernd Leibing
Date: Tue, 29 Sep 1992 19:57
Date: Tue, 29 Sep 1992 19:57
14 lines
1008 bytes
1008 bytes
I use utree. A very nice utility from Peter Klingebiel. Available per anonymous ftp from ftp.uni-paderborn.de in /unix/tools as utree3.04-um.tar.Z. -- Bing --------------------------------------------- Bernd 'Bing' Leibing LOMI, University of Ulm, D-7900 Ulm , Germany Email: leibing@omi.e-technik.uni-ulm.de Phone(Fax): +49 731 502-2514 (-2515) ---------------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads