Skip to content

Instantly share code, notes, and snippets.

@waffle2k
Created January 12, 2011 20:11
Show Gist options
  • Save waffle2k/776795 to your computer and use it in GitHub Desktop.
Save waffle2k/776795 to your computer and use it in GitHub Desktop.
function strip_filename
{
perl -lane 'print $1 if /filename:\[(\S+?)\]/' -
}
function epoch
{
perl -lane '$d=gmtime($1) if /epoch:\[(\d+)\]/; s/epoch:\[\d+\]/epoch:\[$d\]/ and print' -
}
function read_index
{
sudo -u abuse /abuse/AUP/bin/read_index.pl
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment