ubuntu基本操作

来源:互联网 发布:淘宝直通车没有展现量 编辑:程序博客网 时间:2024/06/07 06:12

批量替换文件夹下所有文件中的特定字符

sed -i ‘s/old-word/new-word/g’ *.txt

替换单个文件中的特定字符

sed ‘s/old-word/new-word/g’ input.txt > output.txt

查看含有特定字符的文件

find .|xargs grep -ri “strtomatch” -l

原创粉丝点击