To byte compile all *.el files in a directory.
$ cd your/dir $ emacs -batch -f batch-byte-compile *.el