May 1st, 2004
This is a rewrite of another common UNIX application which can be used to kill all process matching a certain name. However, the major change between that and this version is that it utilizes regular expressions and can be quite deadly. Definitely not recommended use in any sane situation.
Downloads
Tags: cli, perl, unix
Comment on 'killall Rewrite'
April 15th, 2004
Another commonly used UNIX utility that I decided to quickly re-write, for fun. Takes a files a strips all the \r characters out, returning a pure UNIX-endline based file. The resulting snippet can be found below:
print map{s/\r//g;$_}<>;
Tags: cli, snippet, perl, unix
Comment on 'dos2unix Rewrite'
March 17th, 2004
This was a little challenge that I made for myself: Duplicate most of the features of the command-line 'bc' application in the fewest number of characters. The results:
eval('$o='.<>.';print\"$o\n\"')while(1);
Tags: cli, snippet, perl, unix
Comment on 'bc Rewrite'