Skip to content

Instantly share code, notes, and snippets.

@andreagrandi
Created May 21, 2013 10:25
Show Gist options
  • Save andreagrandi/5618842 to your computer and use it in GitHub Desktop.
Save andreagrandi/5618842 to your computer and use it in GitHub Desktop.
Substitute a placeholder like {{hostname}} that is inside a file, with the output of the hostname command.
sed -i "s/{{hostname}}/`hostname`/g" /etc/supervisor/conf.d/celeryd.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment