win32 ag + xargs

需要使用-0

d:\Apps\AutoHotkey\scripts>ag 2b89eaa_r13_ad1 -l -0|xargs -0 sed -i s/2b89eaa_r13_ad1/2b89eaa_r15_ad1/

否则会在多个结果中间出现\015分隔符

d:\Apps\AutoHotkey\scripts>ag 2b89eaa_r13_ad1 -l|xargs file
: cannot open `all/var.ahk\015' (No such file or directory)
: cannot open `clipboard/count.ahk\015' (No such file or directory

posted @ 2018-10-16 16:49  zxyblog  阅读(263)  评论(1编辑  收藏  举报