Guest User

Untitled

a guest
Jul 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. 1 {
  2. h
  3. d
  4. }
  5.  
  6. /^[A-Z]/{
  7. G # append the hold space
  8. s/\([A-Z]\)\n/\1/ # put what was in the hold space on the same line
  9. s/\([A-Z][0-9]\).*$/\1/ # remove all but the first two chars
  10. x # now we're going to work on the hold space
  11. s/^.\(.*\)$/\1/g # delete the first char
  12. x # put everything as it was
  13.  
  14. # now we should have each letter withn it's corresponding number on each line
  15. }
Add Comment
Please, Sign In to add comment