$cat test first second fourth fifth $cat test | awk '{print $0}(NR==2){print "third"}' first second third fourth fifth