您的位置 首页 centos

linux下查找包含某个字符的文件并进行替换的命令

执行:sed -i “s/oldstring/newstring/g” `grep oldstring -rl path`

文章来源:智云一二三科技

文章标题:linux下查找包含某个字符的文件并进行替换的命令

文章地址:https://www.zhihuclub.com/35.shtml

关于作者: 智云科技

热门文章

发表回复

您的电子邮箱地址不会被公开。

3条评论

  1. Hey there 🙂

    Your wordpress site is very sleek – hope you don’t
    mind me asking what theme you’re using? (and don’t mind if I steal it?
    :P)

    I just launched my site –also built in wordpress like
    yours– but the theme slows (!) the site down quite a bit.

    In case you have a minute, you can find it by searching
    for “royal cbd” on Google (would appreciate any feedback) – it’s still
    in the works.

    Keep up the good work– and hope you all take care of yourself during
    the coronavirus scare!

  2. Hi, I do believe this is an excellent website. I stumbledupon it 😉 I am going to revisit once again since i have book-marked it. Money and freedom is the greatest way to change, may you be rich and continue to guide other people.

网站地图