0

我想使用 augeas 编辑文件“myfileDB.properties”。所以使用了Properties.lns。但它产生了错误“parse_failed”和一些时间“parse_skel_failed”。解释此错误的根本原因并解决此问题。

 augtool> print /augeas/files/root/yog/myfileDB.properties/error/
 /augeas/files/root/yog/myfileDB.properties/error = "parse_failed"
 /augeas/files/root/yog/myfileDB.properties/error/pos = "17835"
 /augeas/files/root/yog/myfileDB.properties/error/line = "318"
 /augeas/files/root/yog/myfileDB.properties/error/char = "0"
 /augeas/files/root/yog/myfileDB.properties/error/lens = "/usr/share  /augeas/lenses/dist/properties.aug:50.25-.100:"
 /augeas/files/root/yog/myfileDB.properties/error/message = "Iterated lens matched less than it should"

   /augeas/files/root/yog/myfileDB.properties/error = "parse_skel_failed"
   /augeas/files/root/yog/myfileDB.properties/error/pos = "4844943"
   /augeas/files/root/yog/myfileDB.properties/error/line = "53707"
   /augeas/files/root/yog/myfileDB.properties/error/char = "0"
   /augeas/files/root/yog/myfileDB.properties/error/lens = "/usr/share/augeas/lenses/dist/simplevars.aug:34.10-.46:"
   /augeas/files/root/yog/myfileDB.properties/error/message = "Iterated lens matched less than it should"
4

0 回答 0