— < 1 min read

I needed to quickly modify 500 hundred XML files, each was about 10MB in size, thankfully Linux makes that pretty fast and very easy.

find . -name "*.xml" -print | xargs sed -i 's/FROM/TO/g'

A semi “real world” example:

find . -name "*.xml" -print | xargs sed -i 's/foo/bar/g'