Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 {
- h
- d
- }
- /^[A-Z]/{
- G # append the hold space
- s/\([A-Z]\)\n/\1/ # put what was in the hold space on the same line
- s/\([A-Z][0-9]\).*$/\1/ # remove all but the first two chars
- x # now we're going to work on the hold space
- s/^.\(.*\)$/\1/g # delete the first char
- x # put everything as it was
- # now we should have each letter withn it's corresponding number on each line
- }
Add Comment
Please, Sign In to add comment