#!/bin/bash perl -e 's/\d+/"0|$&$^I"=~s#\^#**#r/gee' -pi^3 <<< 2spooky4me perl -e 's/\d+/"0|$&$^I"=~s#\^#**#r/gee' -pi/3 <<< some1meme2sequences3can4be5really6long7
Standard input is empty
8spooky64me some0meme0sequences1can1be1really2long2
-i used with no filenames on the command line, reading from STDIN. -i used with no filenames on the command line, reading from STDIN.