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.
The tools are developed under Linux with
release early, release often
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.
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).
-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.
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.
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.
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.