perl -ne'print if /^\[moo\]/../^\[cow\]/ and !/^\[/' log.log