fork(1) download
  1. #!/bin/bash
  2. Y(){ for i in `seq $1`;{ printf "I %s %s " `((i%2>0))&&echo hate||echo love` `((i==$1))&&echo it.||echo that`;};}
  3. for i in {1..5}; do Y $i; echo; done
Success #stdin #stdout 0s 5088KB
stdin
Standard input is empty
stdout
I hate it. 
I hate that I love it. 
I hate that I love that I hate it. 
I hate that I love that I hate that I love it. 
I hate that I love that I hate that I love that I hate it.