bash - bash shell 执行
问题描述
我在用
sed-snv
没有什么对我有用
解决方案
-i 标志仅在 GNU Sed 中。
cat file | tr ']' '[' > temp
mv temp file
以上应该对你有用。
推荐阅读
- python - 如何在 python 脚本中格式化 postgreSQL 查询以获得更好的可读性?
- android - 在 MPAndroid 条形图中将 x 轴位置设置为 y = 0
- python - 子字符串中的模式限制 - Python
- python - 深度优先搜索的意外结果
- reactjs - 反应:每次启动时都没有定义我的状态变量
- ruby - 有条件地在 RSpec 循环中应用标签
- eclipse - 如何在 application.yml 中为 @ConfigurationProperties 声明的自定义属性启用 Eclipse 自动完成?
- php - 如果为空,不更改文件上传的数据库值?
- java - +-*/ 有理数上的 Junit.framework.AssertionFailedError,但预期值和结果相同
- android - 如何通过应用内购买跨 Android 和 iOS 测试应用?