Using Perl to Replace Text in Multiple Files
You can search and replace text inside multiple files using Perl. This is how you do it:
$ perl -i -pe 's/Windows/Linux/;' test*
This command will search for the word ‘Windows’ inside all files that begin with ‘test’. When it finds one, it will substitute it with the word ‘Linux’. This is useful if you have multiple files that contain the same text. Remember that you can use regular expressions to make searching flexible.
Microsoft Word Prank
April Fool’s Day is a few days away. If you want to play a trick on someone, preferably someone who is a heavy MS Word user, there is a joke that you can do and it is downright funny (if you are the prankster) and very annoying (if you are the victim).
IAmBetterThanU .com has the code that you need to play this little joke on someone. And maybe now is a good time to introduce OpenOffice.Org too ![]()
Search PinoyTux
Subscribe to Email Feeds
Blog Lounge
Popular Posts
Recent Posts
Drop your Card Here
Recent Comments
- Anidich1 on Tip: Add User and Generate Password Script
- Tom S on Cebu Pacific Sucks
- kadersardar on PinoyTux Spreads Some CommentLuv
- Steve on Creative Labs Threatens Third Party Driver Modder
- Barry on Free Laptops with Broadband Connection








