Skip to content

Instantly share code, notes, and snippets.

@petebachant
Created November 29, 2015 21:25
Show Gist options
  • Select an option

  • Save petebachant/ef16878d6869f032aa09 to your computer and use it in GitHub Desktop.

Select an option

Save petebachant/ef16878d6869f032aa09 to your computer and use it in GitHub Desktop.
Converting all OpenFOAM header versions
OLD_VERSION="2.4.x"
NEW_VERSION="3.0.x"
find . -type f -exec sed -i 's/$OLD_VERSION/$NEW_VERSION/g' {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment