Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 10th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. I'm trying to use SED and REGEX to append any instances of .png, .gif or .jpg within an html document with a cache busting URL. I've put together this command, but it doesn't appear to be finding any instances.
  2.  
  3. sed -i '.old' 's/\.(?:jpg|gif|png)/&?build=12345/g' index.html
  4.  
  5. Can anyone offer some advice?