Skip to content

Instantly share code, notes, and snippets.

@xiaom
Created Feb 7, 2014
Embed
What would you like to do?
regex and refactor
ack DataMode.OPTIONAL | awk 'BEGIN {FS =":"} {print $1}' | xargs sed -i "s/DataMode.OPTIONAL/DataMode.DM_OPTIONAL/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment