Skip to content

Instantly share code, notes, and snippets.

@joka90
Created September 16, 2015 12:41
Show Gist options
  • Save joka90/f430b148ee74ca53224a to your computer and use it in GitHub Desktop.
Save joka90/f430b148ee74ca53224a to your computer and use it in GitHub Desktop.
Funny bash snippets
#find no space befor ( for references in LaTex and add one
# Group () to \1 and \2
# ( { \ are terminated by \( \{ \\ etc.
find ./rtthesisex/ -name "*.tex" -type f -exec sed -i -E 's/([A-Za-z])(\([A-Za-z]* \\ref\{[A-Za-z1-9:]*\}\))/\1 \2/' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment