Inserting a line in a file with perl (sed -i doesn’t work on AIX)

The following line will insert « blah blah blah » at the beginning of the file.txt . If you wanna insert a line anywhere else, you just have to modify this « if $. == [line number] » part. If you just wanna modify

Share Button