ack --print0 -irl 'replace_me' location/ | xargs -0 -L1 sed -i '' 's/replace_me/with_me/g'

Bash use ack and sed to find and...

by Kevin Tran, February 18, 2011 01:35, No refactoring, tagged with replace, bash, find, ack, sed

use ack and sed to find and...

D41d8cd98f00b204e9800998ecf8427e Talk