sed命令

把drivers目录下的所有pr_log替换成pr_snd:

sed -i "s/pr_log/pr_snd/g" `grep pr_log -rl drivers/`

 

你可能感兴趣的:(sed命令)