Skip to content

Instantly share code, notes, and snippets.

@natl
Last active March 7, 2016 21:48
Show Gist options
  • Select an option

  • Save natl/6404ddd2317e47b6c837 to your computer and use it in GitHub Desktop.

Select an option

Save natl/6404ddd2317e47b6c837 to your computer and use it in GitHub Desktop.
Regex/sed command to replace instances of std::log10 with the new G4log method
echo "std::log10((a+(b/3))/4);" | sed 's|std::log10|1./G4Pow::logZ(10)*G4Log|'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment