REPLACE STRING WITH PERL

10 Haziran 2013 Pazartesi

REPLACE STRING WITH PERL
perl -p -i -e ‘s/replace this/using that/g’

Example

perl -p -i -e ‘s/543xxxxxx/XXXXX/g’ “filename”

Old Data was :

286026936111961~543xxxxxx~21671463~~25MAR-

New Data will be :

286026936111961~XXXXX~21671463~~25MAR-

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!