Code snippets‎ > ‎

Scripting

Replacing text in files:

find . -name "*.h" | xargs perl -p -i -e 's/x/y/g'
 
sed -i -e "s/x/y/g" filename
Comments