Wednesday, October 10, 2018

Find all the Replace by Chaining ack output to sed

From the command line, I was able to replace Bootstrap 3 classes with Bootstrap 4 class using
ack, sed and xargs. 
ack "search text" -l --print0 | xargs -0 -n 1 sed -i "s/search text/replacement text/"
Sed recursively with the help of ack and xargs