perl -n0777e 'print ((split(/^This is the temp line.\n/m, $_, 2))[-1])' foo.txt