[vox-tech] Using awk or perl to find and replace

Jay Strauss me at heyjay.com
Wed Nov 24 10:28:44 PST 2004


Not to beat a dead horse:

perl -i.bak -p -e "s/(h)\.(.*?)\.(jpg)/$2.$1.$3/ig" input.txt

In a perl one liner, making a backup of original, and saving capitalization


More information about the vox-tech mailing list