有些大文件,特别的大。有几百兆,甚至更大。
用文本编辑器打开十分的费劲,电脑都卡死了。

想替换其中的字符串,很麻烦。

这个时候有了shell,简直强大到爆炸!

# du -h user.sql 
304M	user.sql
# sed -i "s/tf_user/tf_user_index/g" user.sql 

修改大文件中的tf_user 为 tf_user_index

轻松搞定!!!

sed 威武,shell 威武。

相关文章:

  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2021-11-25
  • 2021-11-01
  • 2022-12-23
  • 2022-01-07
  • 2021-11-09
猜你喜欢
  • 2021-07-02
  • 2021-09-29
  • 2021-12-27
  • 2022-12-23
  • 2021-10-03
相关资源
相似解决方案