Mercurial > repo
view bin/gaseen @ 7429:c4e492dfdb0e
<b_jonas> slashlearn sugar/Sugar, spice, and everything nice. These were the ingredients chosen to create the perfect little girl. But Professor Utonium accidentally added an extra ingredient to the concoction: Chemical X! Thus the Powerpuff Girls were born! Using their ultra super powers, Blossom, Bubbles, and Buttercup have dedicated their lives to fighting crime and the forces of evil!
author | HackBot |
---|---|
date | Sun, 17 Apr 2016 21:23:45 +0000 |
parents | 7b39af120554 |
children |
line wrap: on
line source
#!/bin/bash who="${1% }" who="${who,,}" arr=(/var/irclogs/_esoteric/????-??-??.txt) gawk -vw="$who" -vOFS=":" ' tolower($2) ~ w{x=$0} ENDFILE{if(x){print substr(FILENAME,1,10), x; exit}} ' < <(for ((i=${#arr[@]}-1; i>=0; i-- )); do echo ${arr[i]}; done)