Original file
# cat testfile
one
two
three
four
Changes needed on the file
# cat testfile
one
two
three mynum <-- string is added here
four
I came across file_line module which helps in appending to the end of the file.I could not find any pointers which matches my need to append to the existing line.
Is there anything to regex the string "three" and append to the same line? or any other alternatives.