perl -e 'print "aa\r\nab\r\n\r\naa\nbb\n"' >test