Rewrite part of the UNIX ls command.