Off topic, but I bet some expert here knows how to do this. I think awk or sed may be the way to go? I simply want to append an asterisk to the first 3 lines of a file. eg. test test test test test test to *test *test *test test test test I need to do this on many files. What would the command be to do this? Thanks all!