Skip to content

Instantly share code, notes, and snippets.

@tlockney
Created January 16, 2009 07:06
Show Gist options
  • Save tlockney/47854 to your computer and use it in GitHub Desktop.
Save tlockney/47854 to your computer and use it in GitHub Desktop.
# transform a java property file into valid shell variables
awk 'BEGIN{FS=OFS="="}{gsub(/\#.*/,"")}{gsub(/\./,"_",$1)}{sub(/..*/,"\"&\"",$2)}1' $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment