1,141 karma · joined September 12, 2008
1. It has a fairly good test suite, that rewrites should leverage. That can be easily done by setting $PATH to prepend the dir of the new tools, and running `make check`
2. To give an indication of the size of coreutils:
$ for r in gnulib coreutils; do (cd $r && git ls-files | tr '\n' '\0' | wc -l --files0-from=- | tail -n1); done
985050 total 243154 total
I've collated other mishandling of closed pipes at: http://www.pixelbeat.org/programming/sigpipe_handling.html
BTW the coreutils man pages are a subset of the full manual, and I think that adding more information to man pages can make things harder to find.
The thinking at present is that linking directly to a web page for the full manual is what most users would prefer.
http://lists.gnu.org/archive/html/coreutils/2014-09/msg00014...
cinfo() { xdg-open "http://www.gnu.org/software/coreutils/manual/html_node/$1-invocation.html#$1-invocation"; }
Which you could use like: cinfo ddOne of the hardest parts of coreutils is keeping it working everywhere, including handling that buggy version of function X in libc Y on distro Z. That's handled for GNU coreutils by gnulib, which currently has nearly 10K files, and so is a significant project in itself.
Some stats:
coreutils files, lines, commits: 1072, 239474, 27924
gnulib files, lines, commits: 9274, 302513, 17476
dd if=clickstream.csv.1 iflag=nocache bs=1M | wc -l
A more common technique is to bypass the page cache altogether and is often use to avoid the many unfortunate characteristics of the current Linux VM. This is done usually with directIO: dd if=clickstream.csv.1 iflag=direct bs=1M | wc -l
Now postgres might be able to use directIO as an option?Another related problem with too much caching when writing to slow device can be seen in this thread: http://thread.gmane.org/gmane.linux.kernel.mm/108708 That thread actually describes two problems. 1. That Linux waits too long before writing 2. When it does write large amounts to a slow device it locks out everything else
I'd love a service to provide an RSS feed of my timeline (would require giving auth of course)
Details here: http://www.pixelbeat.org/docs/web/feed.html
http://www.lshift.net/blog/2008/11/14/tracing-python-memory-...
alias ls="BLOCK_SIZE=\'1 ls --color=auto"
The above is a bit hacky and not very UNIXy as it's
lumping more logic into ls, rather than splitting out
into functional units.Number formatting being a very common requirement, I've proposed a design for a new numfmt GNU coreutil
http://lists.gnu.org/archive/html/coreutils/2012-02/msg00085...
which would be used like:
ls -l | numfmt --field=5 --format=%'d