perl -pi.bak -e 'unless ($notfirst++){print "text to add\n";}' temp.txt