从文件中删除所有以 # 开头的行 - Delete all lines beginning with a # from a file

10/14 02:17
阅读数 0

问题:

All of the lines with comments in a file begin with # .文件中所有带有注释的行都以#开头。 How can I delete all of the lines (and only those lines) which begin with # ?如何删除所有以#开头的行(并且只有那些行)? Other lines containing # , but not at the beginning of the line should be ignored.其他包含# ,但不在行首的行应该被忽略。


解决方案:

参考一: https://en.stackoom.com/question/YQpM
参考二: https://stackoom.com/question/YQpM
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部