[mythtv-users] Off topic. Use of AWK?

Mark Hutchinson mark at westviewsystems.com
Fri Oct 24 23:03:52 UTC 2008


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!


More information about the mythtv-users mailing list