I think scsh might be a better choice than elisp. It has built-in regular expressions, and can make system calls. A popular, more unixy choice among lispers is tcl. Perl is nice read Higher Order Perl, that's required reading. Unless you're reading sicp obvs.