Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. validator_file='validator.txt'
  4. first_key=$(head -n1 "$validator" | tr -d '\n')
  5. second_key=$(head -n2 "$validator" | tail -n1 | tr -d '\n')
  6.  
  7. go_file='go_file.go'
  8. sed -ie "s/INITROOTPUBKEY1 = .*/INITROOTPUBKEY1 = \"$first_key\"" "$go_file"
  9. sed -ie "s/INITROOTPUBKEY1 = .*/INITROOTPUBKEY1 = \"$first_key\"" "$go_file"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement