View Full Version : "Tree" Directory Utility
ascherjim
08-13-2006, 02:43 PM
Does anyone know of a "tree" command directory listing utility compatible with Nokia 770?
spycedtx
08-13-2006, 03:14 PM
Does anyone know of a "tree" command directory listing utility compatible with Nokia 770?
perhaps 'find' is what you want.
ie,
find / | more
will search from the very top of the dir. structure and show you everything (readable by the user you're running as)
or: find . to start listing from where you are.
there are a few other command line params for find (such as -exec)
ascherjim
08-13-2006, 03:54 PM
Thanks for your suggestion. The "find" command does indeed list all the files on the Nokia (and there sure are lots of them!), but I do miss the formatting of a "tree" command with its indentations of subdirectories under directories, and files under directories and subdirectories. But this is perhaps quibbling on my part. Thanks again.
spycedtx
08-13-2006, 07:56 PM
Thanks for your suggestion. The "find" command does indeed list all the files on the Nokia (and there sure are lots of them!), but I do miss the formatting of a "tree" command with its indentations of subdirectories under directories, and files under directories and subdirectories. But this is perhaps quibbling on my part. Thanks again.
While quite not as visually useful as the tree, the other options is "ls -R" to recurse.. you can tweak the parameters (man ls on a regular *nix distro) to adjust the formatting, but just as that will give you sections for each dir.
ascherjim
08-13-2006, 09:22 PM
You are right. ls -R is somewhat better. There is a pretty good tree program at ftp://mama.indstate.edu/linux/tree written in CC+, but I regret I'm not qualified to modify it for the Nokia. Thanks once again for your thoughts and advice in this matter. Jim
bradb
08-13-2006, 11:10 PM
Ask and you shall receive. Please give this a try.
Brad.
ascherjim
08-14-2006, 01:56 AM
Brad: Many thanks. It works perfectly. And what fast work! Trust you'll post it more widely on the off chance anyone else might be interested. And thanks again to you, "Spy," for your suggestions. Regards to you both, Jim
bradb
08-14-2006, 03:20 AM
Jim-
Glad to help. My current project was making me crazy so it was nice to do something simple for a change.
And yes, I'll be adding this to the application catalog in the next day or so (as well as adding another port or two).
Brad.
gemniii42
09-04-2008, 06:31 PM
Just a bump for a neat Unix utility that works on Diablo.
Note - it created a 64Mb file on my setup.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.