[jump to content][No Software Patents]Tools (new) : dirlist [ Home | Scylla+Charybdis old home | Tools (old) | Tools (new) | FAQ | Downloads ]

Moving to GitHub, slowly

The software on this pages will slowly be moved to GitHub https://github.com/hilbix/. The CVS repository will be migrated to GIT as well, so the history will be preserved, a bit. See FAQ.

Scylla and Charybdis, dirlist - Tools

The tools are developed under Linux with ESR's paradigm release early, release often in mind.
So you can consider this beta software, or alpha, or pre-alpha, or even worse ;)

Have a look in the download directory for all downloads.
As always here, all you get is the source. No binaries here.

dirlist 0.6.1-20111116-041456

Primitive directory lister, quicker than ls, find and echo *


⇒ ⇒ ⇒ The development shifted to another location. All future versions will be published at https://github.com/hilbix/dirlist   ⇐ ⇐ ⇐


Without any option it can skip the stat() call, which can improve the speed on slow filesystems.

'ls' and 'echo *' are not good from shell's view to work on files. Even 'for a in *' often is slow, if you happen to hit zillons of files. This is where dirlist can optimize things as it, by default, outputs the directory listing unbuffered.

This is a companion to all other tools which can read a file list from stdin. Also there is an escape option to properly read filenames with the shell read command.

Examples are given when you call it with option -h (help).

History:

version 0.6.1-20111116-041456

download (261318 bytes) sig

-t now accepts negated variants like -dir or -file

Useful like in:

dirlist -rt-dir /directory

Note that this was possible before, but it was not easy to specify.

version 0.6.0-20110508-232848

download (260388 bytes) sig

Options -i and -z added, bugfix for -d

The bug which tried to list DIR/DIR on "dirlist -dr DIR" was removed.

You can now chain dirlist if called properly or read directories to read from stdin like this:

dirlist -s0 IMG | dirlist -0z | dirlist -z | wc -l

This counts the entries IMG/*/*/* without calls to stat(). And you will see errors if IMG/* or IMG/*/* contains non-directories.

version 0.5.1-20100811-073050

download (254778 bytes) sig

Minor fix: Set SIGPIPE to standard behavior

For unknown reason I came across the problem, that SIGPIPE was ignored by default on a session. I really do not know why this can happen, but apparently the SIGPIPE handling is not reset on exec(), thus a wrong setting can be inherited from environments somehow.

Setting it explicitly to SIGDFL seems to fix this issue.

Also some examples given were improved.

version 0.5.0-20100602-022803

download (254563 bytes) sig

Bugfix: Stat of files now possible. Option -e added for better shell compatibility. Option -t added because file type flags are incomprehensible.

This is a standalone version, previous versions were part of mvatom.

License and Disclaimer

All you can see here is free software according to the GNU GPL.
Copyright (C)2000-2011 by Valentin Hilbig
Note that the software comes with absolutely no warranty of any kind.
You use the software at your own risk.
Valentin Hilbig cannot be hold responsible for any unintended damage,
lost data or malfunction of the software you can find here.

[FSFE contributor 2007]

[end of page - jump back to content][hacker culture]
Last modified: 2011-09-12 by Valentin Hilbig [ Imprint / Impressum ]