maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Upgrading (https://talk.maemo.org/forumdisplay.php?f=8)
-   -   "Tree" Directory Utility (https://talk.maemo.org/showthread.php?t=2770)

ascherjim 2006-08-13 18:43

"Tree" Directory Utility
 
Does anyone know of a "tree" command directory listing utility compatible with Nokia 770?

spycedtx 2006-08-13 19:14

command line:
 
Quote:

Originally Posted by ascherjim
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 2006-08-13 19:54

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 2006-08-13 23:56

the tree is nice...
 
Quote:

Originally Posted by ascherjim
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 2006-08-14 01:22

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 2006-08-14 03:10

1 Attachment(s)
Ask and you shall receive. Please give this a try.

Brad.

ascherjim 2006-08-14 05:56

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 2006-08-14 07:20

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 2008-09-04 22:31

Re: "Tree" Directory Utility
 
Just a bump for a neat Unix utility that works on Diablo.
Note - it created a 64Mb file on my setup.


All times are GMT. The time now is 12:09.

vBulletin® Version 3.8.8