我在追加模式下打开文件.我需要替换文件中的2,3和4行,稍后我需要在文件末尾添加新数据.
perl text replace file append
append ×1
file ×1
perl ×1
replace ×1
text ×1