Skip to content

Instantly share code, notes, and snippets.

@rustymyers
Created September 30, 2011 20:07
Show Gist options
  • Save rustymyers/1254832 to your computer and use it in GitHub Desktop.
Save rustymyers/1254832 to your computer and use it in GitHub Desktop.
$ cat preferences.js
pref("app.update.url", "http://url.com/update.xml");
pref("app.update.url.manual", "http://url.com/manual");
$ perl -i~ -pe 's{pref("app.update.url", "http://url.com/update.xml");}{pref("app.update.url", "http://custom.edu/update.xml");}g' preferences.js
$ cat preferences.js*
pref("app.update.url", "http://url.com/update.xml");
pref("app.update.url.manual", "http://url.com/manual");
pref("app.update.url", "http://url.com/update.xml");
pref("app.update.url.manual", "http://url.com/manual");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment