Eg: I have a Red car
I love Red car
<p But I have a lot of affection with carI want to Substitute whole file with Red car Thank you#!usr/bin/perl open(DAT,"something/something/something"); while(<DAT>) { $_=~ s/(.*)/Red car/g; print DAT $_; }
In reply to Replace and substitur in same file by Nansh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |