controllers/swfsControllers.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
controllers/swfsControllers.go
@@ -214,6 +214,7 @@ //获取查找内容当前行内容 func GetNowLineContent(filePath string, searchContent string) string { scriptStr := "cat" + filePath + "| grep " + searchContent fmt.Println("scriptStr: ", scriptStr) return strings.Split(util.RunScript(scriptStr), "\n")[0] }