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'


Anarchist. Pessimist. Bipolar. Hacker. Hyperpolyglot. Musician. Ex pro gamer. Cunt. They/Them.


Join the discussion

View Source