如何将公共前缀重写为标头?
假设您有一个如下所示的变更注释列表:
2011-02-21: Removed first feature to get rid of previous customer
2011-02-21: Added second feature to open up new markets
2011-02-09: Implemented hot fix to calm down angry customer
2011-02-08: Developed project into a minimal viable product
2011-02-08: Started project
可以使用标准 shell 工具将其重写为以下格式吗?
2011-02-21
* Removed first feature to get rid of previous customer
* Added second feature to open up new markets
2011-02-09
* Implemented hot fix to calm down angry customer
2011-02-08
* Developed project into a minimal viable product
* Started project
如果是这样,怎么办?
Say you're having a list of change notes like this:
2011-02-21: Removed first feature to get rid of previous customer
2011-02-21: Added second feature to open up new markets
2011-02-09: Implemented hot fix to calm down angry customer
2011-02-08: Developed project into a minimal viable product
2011-02-08: Started project
Can this be rewritten into the following format using standard shell tools?
2011-02-21
* Removed first feature to get rid of previous customer
* Added second feature to open up new markets
2011-02-09
* Implemented hot fix to calm down angry customer
2011-02-08
* Developed project into a minimal viable product
* Started project
If so, how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通过这个管道。
Pipe through this.
这应该可以做到:
This should do it: