For one file
perl -p -i -e "s/<orig>/<new>/g" <filename.txt>
Or multiple files
perl -p -i -e "s/<orig>/<new>/g" *.<filetype>
Love it! Used it a couple of times today too .
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
Connecting to %s
Notify me of follow-up comments via email.
Get every new post delivered to your Inbox.
Love it! Used it a couple of times today too
.