if what you want to edit looks like all the files, then without using vi to do it manually. (although vi can also be scripted), hypothetically, it looks something like this since you never mention that you want to edit
grep -rnI 'xg_icon-*' | while read FILE do sed -i.bak 's/old/new/g' $FILE
ghostdog74 Nov 11 '09 at 16:49 2009-11-11 16:49
source share