Search and Replace in Files Posted Jan 14, 2008 Updated Mar 4, 2024 By Chris Schuld 1 min readHere is how to do a search and replace using Perl regex over a set of files: 1 perl -pi -e 's/source/destination/g' *.ext Development, Linux linux perl regex This post is licensed under CC BY 4.0 by the author. Share