$ perl -i.bak -npe 's#(<url><![CDATA[).*?(]])#$
What it does:
-i.bak makes a backup copy ending in .bak in case it doesn't turn out the
way you want
-n means run the script for each line in the file
-p means print each line
-e means the script follows.
No comments:
Post a Comment