Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

READ-ONLY-MODE: PLEASE DO NOT POST NEW STUFF!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile       

The time now is Sun 09 Aug 2020, 20:04
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
New slocate Wrapper
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [43 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1669
Location: nyc

PostPosted: Wed 25 Feb 2015, 01:05    Post subject:  

musher0 wrote:
Hello, again, Puppus.

[...] Did I see two "-h" 's in your line above? In any case, trying it now [...]

So you gave us
Code:
tree -h -a -l -f -h -H baseHREF -T treehtml1 > thisdir.html

Care to explain what the parms do? Smile I'm not reading all that doc, no way! Smile

(It did create a huge tree file (88.7 Mb's) with everything in it on my rig.
So we know it works...)

BFN.

musher0


i looked, didn't see the -h, doubled it unnecessarily.

tree -h -a -l -f -C -H baseHREF -T treehtml1 >


-h : human readable sizes

-a : All files are listed.

-l : Follow symbolic links like directories

-f : Print the full path prefix for each file

-C : Turn colorization on always (now included...)

-H baseHREF : Prints out HTML format with baseHREF as top directory

-T treehtml1 : Replace the default HTML title and H1 header with [treehtml-1: set internal title]

> thisdir.html: output to file [entitled, in this case, thisdir.html]


i pulled the code from the help, which isn't too bad:
Quote:

tree --help
usage: tree [-adfghilnpqrstuvxACDFNS] [-H baseHREF] [-T title ] [-L level [-R]]
[-P pattern] [-I pattern] [-o filename] [--version] [--help] [--inodes]
[--device] [--noreport] [--nolinks] [--dirsfirst] [--charset charset]
[--filelimit #] [<directory list>]

-a All files are listed.
-d List directories only.
-l Follow symbolic links like directories.
-f Print the full path prefix for each file.
-i Don't print indentation lines.
-q Print non-printable characters as '?'.
-N Print non-printable characters as is.
-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.
-D Print the date of last modification.
-F Appends '/', '=', '*', or '|' as per ls -F.
-v Sort files alphanumerically by version.
-r Sort files in reverse alphanumeric order.
-t Sort files by last modification time.
-x Stay on current filesystem only.
-L level Descend only level directories deep.
-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.
-P pattern List only those files that match the pattern given.
-I pattern Do not list files that match the given pattern.
-H baseHREF Prints out HTML format with baseHREF as top directory.
-T string Replace the default HTML title and H1 header with string.
-R Rerun tree when max dir level reached.

-o file Output to file instead of stdout.
--inodes Print inode number of each file.
--device Print device ID number to which each file belongs.
--noreport Turn off file/directory count at end of tree listing.
--nolinks Turn off hyperlinks in HTML output.
--dirsfirst List directories before files.
--charset X Use charset X for HTML and indentation line output.
--filelimit # Do not descend dirs with more than # files in them.
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Wed 25 Feb 2015, 01:53    Post subject:  

If you're interested in tree-type scripts, see #'s a.16 and a.17 here:
http://tldp.org/LDP/abs/html/contributed-scripts.html#TREE

I found another one here: http://blog.niklasottosson.com/?p=751

BFN.

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Wed 25 Feb 2015, 13:05    Post subject:  

Hi people,

Still, there's something about the simplicity of "Al Gore" Wink
-- written -AlgohR -- for
    a) an almost tree-like display
    b) the parms are easy to remember !
    c) the listing is in text format; can be viewed in an editor or browser
    __ and is easily searchable through grep or egrep!

Code:
ls -AlgohR 'directory' > files.lst

-A almost all files (no dots)
-l long listing (includes the code for the file's features)
-g don't show the group
-o don't show the owner
-h show size of file in human-understandable numbers
-R recurse to lowest (or "bottommest") folder (this parm needs to
__ be the last one of the series)

Capital A is the 1st parm, capital R the last parm, the others in lower-case.

BFN.

musher0

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Last edited by musher0 on Sat 28 Feb 2015, 01:06; edited 1 time in total
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2820
Location: South Australia :-(

PostPosted: Fri 27 Feb 2015, 08:56    Post subject:  

Here is a nice little GUI/frontend for findutils called locator. (Updated to include a progress bar.)

On Fatdog-700 only the GUI is required as all findutils are included.

For tahr-pup and other 32bit systems you will likely need the full findutils pet, linked below. If you compile your own findutils from source you will need to follow the directions in the help file of locator.

http://www.smokey01.com/software/tahr-6/locator-1.1-tahr.pet
http://www.smokey01.com/software/tahr-6/findutils-tahr-4.4.2.pet
Locator-1.1.jpg
 Description   Locator - directory and File finder from locate database
 Filesize   89.62 KB
 Viewed   405 Time(s)

Locator-1.1.jpg


_________________
Software <-> Distros <-> Tips <-> Newsletters

Last edited by smokey01 on Tue 03 Mar 2015, 07:19; 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: 15041
Location: Gatineau (Qc), Canada

PostPosted: Fri 27 Feb 2015, 10:37    Post subject:  

Hi, smokey01.

Thanks for the info.

Bah, that gui is grey and white only with black print. My slocate's CLI
wrapper is prettier and has more colors! (Hehe. You'd think GUI's are an
improvement, wouldn't you??!! ) Wink

On a serious note, would you happen to know which of the GNU findutils
FatDog 700 uses? It certainly doesn't use all of them.

BFN.

musher0

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2820
Location: South Australia :-(

PostPosted: Fri 27 Feb 2015, 15:56    Post subject:  

Click on the help button it will give you details, even the compile instructions. Findutils-4.4.2.tar.gz which is the latest although it is quite old.

Cheers

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
musher0

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

PostPosted: Sat 28 Feb 2015, 20:37    Post subject:  

smokey01 wrote:
Here is a nice little GUI/frontend for findutils called locator.

On Fatdog-700 only the GUI is required as all findutils are included.

For tahr-pup and other 32bit systems you will likely need the full findutils pet, linked below. If you compile your own findutils from source you will need to follow the directions in the help file of locator.

http://www.smokey01.com/software/tahr-6/locator-1.0.pet
http://www.smokey01.com/software/tahr-6/findutils-tahr-4.4.2.pet


Hi, Smokey.

There is something wrong with your files. They won't install by clicking
on them, and UExtract says there is a gunzip error of sorts in the archive.
Same problem whether the files are downloaded directly from your ftp
site or from here.

Sorry. BFN.

musher0

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2820
Location: South Australia :-(

PostPosted: Sun 01 Mar 2015, 04:20    Post subject:  

I'm not having that problem here in tahrpup-6.0.2. It installs fine and extracts with Uextract. No problems here with the FD700 package either.

What distro are you using?

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
musher0

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

PostPosted: Sun 01 Mar 2015, 10:11    Post subject:  

smokey01 wrote:
I'm not having that problem here in tahrpup-6.0.2. It installs fine and extracts with Uextract. No problems here with the FD700 package either.

What distro are you using?


Yesterday evening, it was in puppy 5.4.3, this morning it's in slacko-6.0b...
Same thing in the two distros. The attached may tell more to a trained eye...
error-in-locator-pet_2015-03-01.jpg
 Description   
 Filesize   42.58 KB
 Viewed   324 Time(s)

error-in-locator-pet_2015-03-01.jpg


_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1802

PostPosted: Sun 01 Mar 2015, 12:35    Post subject:  

musher0 wrote:
smokey01 wrote:
I'm not having that problem here in tahrpup-6.0.2. It installs fine and extracts with Uextract. No problems here with the FD700 package either.

What distro are you using?


Yesterday evening, it was in puppy 5.4.3, this morning it's in slacko-6.0b...
Same thing in the two distros. The attached may tell more to a trained eye...

I think those PETs were gzipped during download, so in order to install/uextract them, you need to ungzip them first:
Code:
mv some.pet some.pet.gz
gunzip some.pet.gz

I encountered this behavior a couple of times, as well as the opposite - ungzipping during download, so the downloaded PET became a plain tar archive.

Anyway, downloading via wget should prevent this.

PS. Both PETs are being downloaded properly in FD64-700 + Chrome-40.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Sun 01 Mar 2015, 13:59    Post subject:  

Thanks, SFR. Will keep that in mind for Smokey01's site.

BFN.

musher0

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2820
Location: South Australia :-(

PostPosted: Sun 01 Mar 2015, 19:30    Post subject:  

Musher0 I don't think it has anything to do with the site or I'm sure I would have heard about it before now.

What is your method of downloading?

Did SFR suggestion solve your issue?

Cheers

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
musher0

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

PostPosted: Mon 02 Mar 2015, 01:36    Post subject:  

smokey01 wrote:
Musher0 I don't think it has anything to do with the site or I'm sure I would have heard about it before now.

What is your method of downloading?

Did SFR suggestion solve your issue?

Cheers


Hi, Smokey01.

Yes, thanks for asking, wget did the trick. The files downloaded with
wget are "healthy", although an extra step is needed to untar them.
I did not install them yet, just tested them as unpacked. (I always do
that.) I had done the previous downloads with Opera 12.16.

The find utilities do not work in precise 5.4.3, however. I'll have to try in a
Puppy with glibc 2.17 or higher. (But tomorrow. It's late here.)

BFN.

musher0

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Mon 02 Mar 2015, 23:16    Post subject:  

Updated to version 1g. Please see 1st post. Thanks. musher0
_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 6730
Location: Earth

PostPosted: Tue 03 Mar 2015, 04:37    Post subject:  


_________________
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 
Display posts from previous:   Sort by:   
Page 2 of 3 [43 Posts]   Goto page: Previous 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
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.1475s ][ Queries: 13 (0.0148s) ][ GZIP on ]