alias sample { echo 2 -a This is line 1 echo 3 -a This is line 2 echo 4 -a This is line 3 } on *:INPUT:test:{ sample }