use ack find and replace files

原创文章,转载请注明来源并保留原文链接

使用ack来批量查找替换文件中的字符串

ack-grep --print0 -l 'A' | xargs -0 -n 1 sed -i -e 's/A/B/g'

Leave a Reply

Your email address will not be published. Required fields are marked *