Skip to content

Instantly share code, notes, and snippets.

@loadletter
Created March 17, 2014 14:39
Show Gist options
  • Save loadletter/9600448 to your computer and use it in GitHub Desktop.
Save loadletter/9600448 to your computer and use it in GitHub Desktop.
cat DHTservers | while read line; do echo " {"; echo " address = \"`echo -n $line | cut -d' ' -f1`\""; echo " port = `echo -n $line | cut -d" " -f2`"; echo " public_key = \"`echo -n $line | cut -d" " -f3`\""; echo " },"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment