} I simply want to append an asterisk to the first 3 lines of a file. awk '{if ( NR < 4 ) print "*"$0; else print $0}' -- "Why is it so hot inside this handbasket?" -- Steve Heistand steve at heistand.org