Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 25 Jul 2016, 12:06
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Come and get them: tree(s)-1.6.0 and 1.7.0 (32-bit & 64 bit)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Author Message
musher0


Joined: 04 Jan 2009
Posts: 8115
Location: Gatineau (Qc), Canada

PostPosted: Fri 18 Mar 2016, 13:17    Post subject:  Come and get them: tree(s)-1.6.0 and 1.7.0 (32-bit & 64 bit)
Subject description: Fill a gaping hole in PuppyLinux
 

    -- For the latest 32-bit version as of this writing, please go down here.
    -- You can get step's 64-bit version from this post. Thanks, step.
    -- Thanks to Flash, the history of the < tree > command on this forum is also here
    -- There is some help to get you started using the < tree > command, at the
    __ end of this post, at the top of the next page, and
    here.
~~~~~~~~~~~~~~

Hi folks.

Somebody made me realize that there is no < tree > command in most Puppies.
How PuppyLinux managed without it, I don't know.

[Edit] I'm exaggerating. Please see below Flash's brief history of the < tree >
command on this forum.
[End of edit]

Attached is a tried-and-true version and the basic < tree > help.

Enjoy but be ashamed for Puppy. Yeah, have mixed feelings about it, it's ok.

That anyone has to provide the PuppyLinux community with a separate copy of the
< tree > utility in this forum -- thirteen years after the creation of PuppyLinux -- is
certainly nothing to brag about.

Install < tree > today and be hush-hush about it. Lie about it. Nobody needs to
know. It's a Secret of State: tell your friends Puppy always had it.

[Edit.] According to Flash's findings, it's been available to Puppyists since 2008.
But never widely advertised.
[End of edit]

Geez. BFN.

~~~~~~~~~~~~~~
Quote:
[~]>tree --help
usage: tree [-acdfghilnpqrstuvxACDFQNSUX] [-H baseHREF] [-T title ] [-L level [-R]]
[-P pattern] [-I pattern] [-o filename] [--version] [--help] [--inodes]
[--device] [--noreport] [--nolinks] [--dirsfirst] [--charset charset]
[--filelimit[=]#] [--si] [--timefmt[=]<f>] [<directory list>]
------- Listing options -------
-a All files are listed.
-d List directories only.
-l Follow symbolic links like directories.
-f Print the full path prefix for each file.
-x Stay on current filesystem only.
-L level Descend only level directories deep.
-R Rerun tree when max dir level reached.
-P pattern List only those files that match the pattern given.
-I pattern Do not list files that match the given pattern.
--noreport Turn off file/directory count at end of tree listing.
--charset X Use charset X for terminal/HTML and indentation line output.
--filelimit # Do not descend dirs with more than # files in them.
--timefmt <f> Print and format time according to the format <f>.
-o filename Output to file instead of stdout.
-------- File options ---------
-q Print non-printable characters as '?'.
-N Print non-printable characters as is.
-Q Quote filenames with double quotes.
-p Print the protections for each file.
-u Displays file owner or UID number.
-g Displays file group owner or GID number.
-s Print the size in bytes of each file.
-h Print the size in a more human readable way.
--si Like -h, but use in SI units (powers of 1000).
-D Print the date of last modification or (-c) status change.
-F Appends '/', '=', '*', '@', '|' or '>' as per ls -F.
--inodes Print inode number of each file.
--device Print device ID number to which each file belongs.
------- Sorting options -------
-v Sort files alphanumerically by version.
-r Sort files in reverse alphanumeric order.
-t Sort files by last modification time.
-c Sort files by last status change time.
-U Leave files unsorted.
--dirsfirst List directories before files (-U disables).
------- Graphics options ------
-i Don't print indentation lines.
-A Print ANSI lines graphic indentation lines.
-S Print with ASCII graphics indentation lines.
-n Turn colorization off always (-C overrides).
-C Turn colorization on always.
------- XML/HTML options -------
-X Prints out an XML representation of the tree.
-H baseHREF Prints out HTML format with baseHREF as top directory.
-T string Replace the default HTML title and H1 header with string.
--nolinks Turn off hyperlinks in HTML output.
---- Miscellaneous options ----
--version Print version and exit.
--help Print usage and this help message and exit.
tree-1.6.0.pet
Description 
pet

 Download 
Filename  tree-1.6.0.pet 
Filesize  40.86 KB 
Downloaded  54 Time(s) 

_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink

Last edited by musher0 on Mon 21 Mar 2016, 13:42; edited 10 times in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 8115
Location: Gatineau (Qc), Canada

PostPosted: Fri 18 Mar 2016, 15:36    Post subject:  

Sample listing, similar to what you'd get from < ls>.
tree_sample-listing_2016-03-18.jpg
 Description   
 Filesize   54.13 KB
 Viewed   378 Time(s)

tree_sample-listing_2016-03-18.jpg


_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 12010
Location: Arizona USA

PostPosted: Fri 18 Mar 2016, 15:58    Post subject:  

Doesn't work in 64 bit Quirky Werewolf:
Code:
# tree -d
bash: /usr/bin/tree: No such file or directory
#

Yet there is a file named tree in /usr/bin/ and it is executable. Confused
Back to top
View user's profile Send private message 
gcmartin


Joined: 14 Oct 2005
Posts: 6513
Location: Earth

PostPosted: Fri 18 Mar 2016, 16:37    Post subject:  

This seems to be a problem with @BarryK's distros/derivatives. Like you, I have the same problem. But, if we wait I am sure an understanding and solution will emerge before sun-rise, tomorrow. ... maybe sooner!

The TREE command works fine on the WOOFCE PUPs I've tested and on the Lighthouse series of distros, as well; shown here. It gives answers ... fast (similar in performance of the ls command).

Looking forward to tomorrow.
P.S. There is a newer version that just might help. If it does, be sure to update the Thread's title. Maybe just "TREE - a missing Puppy Linux command" or something similar.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
Back to top
View user's profile Send private message 
gcmartin


Joined: 14 Oct 2005
Posts: 6513
Location: Earth

PostPosted: Fri 18 Mar 2016, 17:02    Post subject: Solution for BarryK's derivative.  

This is tested and found working using DLNAPUP!
  1. Use QPM to Uninstall this thread's 1.6 Tree PET.
  2. Use QPM to search for TREE. Then, install the updated TREE version (NO MATTER IFF it has a green checkmark or not!).
  3. Open a terminal and type "tree" to test
    Code:
    bash-4.1# cd /mnt/MyNAS4/ISOs
    <root> /mnt/MyNAS4/ISOs
    bash-4.1# tree -if | grep -E "\.iso$"
    ./Downloads/LInux/Puppy/Musher0/dpw-3.14.56.1.iso
    ./   o
    ./   o
    ./   o
All credit to these steps go to the DLNAPUP distro developer; @ETP!

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 8115
Location: Gatineau (Qc), Canada

PostPosted: Sat 19 Mar 2016, 00:15    Post subject:  

Flash wrote:
Doesn't work in 64 bit Quirky Werewolf:
Code:
# tree -d
bash: /usr/bin/tree: No such file or directory
#

Yet there is a file named tree in /usr/bin/ and it is executable. Confused
Hi, Flash.

I compiled this < tree > on a 32 bit. Theoretically a 32-bit app should run on a 64-bit OS.

If it doesn't, well... tough. I won't speculate. It can be for x number of reasons.

BFN.

_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 8115
Location: Gatineau (Qc), Canada

PostPosted: Sat 19 Mar 2016, 00:18    Post subject:  

@gcmartin:

What is "QPM" ? TIA.

_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 8115
Location: Gatineau (Qc), Canada

PostPosted: Sat 19 Mar 2016, 01:14    Post subject:  

Hello all.

Here is the latest version as of this writing, tree-1.7.0, upx'd. The changelog is here.

Works fine on 32-bit Puppies and machines, maybe not on 64-bit. In any case,
I compiled it as per the instructions included in the source package. I take no
responsibility if you get a baobab instead of a birch tree on your system.

If you are not satisfied with this compilation, please leave this thread immediately
and go find a < tree > utility compiled by someone else. Or go browse the *tree*
scripts in ocaml at -- https://opam.ocaml.org/packages/index-date.html --.

Do not enjoy, do not pass "Go" and do not collect 200$.

BFN.
tree-1.7.0.pet
Description 
pet

 Download 
Filename  tree-1.7.0.pet 
Filesize  42.49 KB 
Downloaded  46 Time(s) 

_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 8115
Location: Gatineau (Qc), Canada

PostPosted: Sat 19 Mar 2016, 14:39    Post subject:  

Hello all.

Here's a shell script alternative.
Not as flexible as the original.

BFN.

_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink

Last edited by musher0 on Sat 19 Mar 2016, 14:57; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 8115
Location: Gatineau (Qc), Canada

PostPosted: Sat 19 Mar 2016, 14:57    Post subject:  

Hello again, < tree > huggers. Wink

Some resources about < tree >:

Mandatory reading:
Man page for tree

A couple of well done mini-tutorials with illustrations:
http://www.computerhope.com/unix/tree.htm
http://lintut.com/use-tree-command-in-linux

~~~~~~~~~~~~~~~~~
Add'l comments:

As you use < tree >, you'll discover that you can do a lot of listings better, i.e.
more efficiently and more to the point, with < tree > than with < ls >.
("A lot of" does not mean "all". Are we clear on this?)

If you pipe its results through < egrep > (aka < grep -E >) or < awk >, < tree > can
get really powerful while simpler to use than < find >. In many situations, you'll also
get your results faster than by using < find >.
(Again: "many" does not mean "all". Are we clear on this?)

Finally, a "don't-get-confused" warning:
The listings that < tree > provides will overlap with those that < ls > and < find >
provide, but < tree > is not meant to and cannot replace those two utilities.

BFN.

_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
gcmartin


Joined: 14 Oct 2005
Posts: 6513
Location: Earth

PostPosted: Sun 20 Mar 2016, 00:28    Post subject:  

Hello @Musher0. "QPM" you ask: For those who run @BarryK's recent distros,
QPM = Quirky Package Manager. (Sorry for the delay, today)
@Flash is running @BarryK's distro. As I have one of his derivatives running, too.

Tested 1.7.0 on other PUP 32bit distros.

Referencing programs compiled for 32bit will not run correctly in 64bit. Some will and some wont, any more so than a 64bit compiled program will run on 32bit. The source is the same, but compiler and linker outputs are not.

Hope this is helpful.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
Back to top
View user's profile Send private message 
step

Joined: 04 May 2012
Posts: 667

PostPosted: Sun 20 Mar 2016, 14:26    Post subject: tree for fatdog64-700  

64bit tree for Fatdog64-70x is here
_________________
Fatdog64-702|+Packages|Findnrun|+forum|OpenMediaVault
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 8115
Location: Gatineau (Qc), Canada

PostPosted: Sun 20 Mar 2016, 14:33    Post subject: Re: tree for fatdog64-700  

step wrote:
64bit tree for Fatdog64-70x is here
Thanks.
_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 12010
Location: Arizona USA

PostPosted: Sun 20 Mar 2016, 17:27    Post subject: Re: tree for fatdog64-700  

step wrote:
64bit tree for Fatdog64-70x is here

Installed in 64 bit Quirky Werewolf by simply clicking on the .txz file and it works just fine. Thanks. Very Happy
For historical purposes, TrailerTrash made the first post featuring tree here.
Pizzasgood compiled tree 1.5.2.2 here and also the .doc file.
Bruce B had an interesting idea for using tree in HTML here.
"tree --help" in a console gets a quick listing, but the options are not well explained. Is there a more complete instruction manual?
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 8115
Location: Gatineau (Qc), Canada

PostPosted: Sun 20 Mar 2016, 21:14    Post subject:  

Hi Flash.

You said:
> "tree --help" in a console gets a quick listing, but the options are not well
__ explained. Is there a more complete instruction manual?


Did you miss this post above? Also, This page on the computerhope site
has examples.

I'll try to come up with more real-life examples below.

BFN.

_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0747s ][ Queries: 12 (0.0050s) ][ GZIP on ]