Copy lines of text between '{}'s
Give this text file contents:
1
2 ; <<>> DiG 9.10.6 <<>> download.fedoraproject.org
3 ;; global options: +cmd
4 ;; Got answer:
5 ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52209
6 ;; flags: qr rd ra; QUERY: 1, ANSWER: 10, AUTHORITY: 0, ADDITIONAL: 1
7
8 ;; OPT PSEUDOSECTION:
9 ; EDNS: version: 0, flags:; udp: 512
10 ;; QUESTION SECTION:
11 ;download.fedoraproject.org. IN A
12 {
13 ;; ANSWER SECTION:
14 download.fedoraproject.org. 300 IN CNAME wildcard.fedoraproject.org.
15 wildcard.fedoraproject.org. 22 IN A 38.145.60.20
16 wildcard.fedoraproject.org. 22 IN A 152.19.134.142
17 wildcard.fedoraproject.org. 22 IN A 67.219.144.68
18 wildcard.fedoraproject.org. 22 IN A 8.43.85.67
19 wildcard.fedoraproject.org. 22 IN A 38.145.60.21
20 wildcard.fedoraproject.org. 22 IN A 152.19.134.198
21 wildcard.fedoraproject.org. 22 IN A 8.43.85.73
22 wildcard.fedoraproject.org. 22 IN A 140.211.169.196
23 wildcard.fedoraproject.org. 22 IN A 34.221.3.152
24 }
25 (
26 ;; Query time: 95 msec
27 ;; SERVER: 2600:6c52:763f:e773:1691:82ff:fe86:3046#53(2600:6c52:763f:e773:1691:82ff:fe86:3046)
28 ;; WHEN: Fri Jun 16 21:31:33 PDT 2023
29 ;; MSG SIZE rcvd: 222
30 )
Move the cursor to the '{' on line 12. (:12<return>) then type: mk%y'k then move the cursor to line 7 and type: p and the file should look like this:
1
2 ; <<>> DiG 9.10.6 <<>> download.fedoraproject.org
3 ;; global options: +cmd
4 ;; Got answer:
5 ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52209
6 ;; flags: qr rd ra; QUERY: 1, ANSWER: 10, AUTHORITY: 0, ADDITIONAL: 1
7 {
8 ;; ANSWER SECTION:
9 download.fedoraproject.org. 300 IN CNAME wildcard.fedoraproject.org.
10 wildcard.fedoraproject.org. 22 IN A 38.145.60.20
11 wildcard.fedoraproject.org. 22 IN A 152.19.134.142
12 wildcard.fedoraproject.org. 22 IN A 67.219.144.68
13 wildcard.fedoraproject.org. 22 IN A 8.43.85.67
14 wildcard.fedoraproject.org. 22 IN A 38.145.60.21
15 wildcard.fedoraproject.org. 22 IN A 152.19.134.198
16 wildcard.fedoraproject.org. 22 IN A 8.43.85.73
17 wildcard.fedoraproject.org. 22 IN A 140.211.169.196
18 wildcard.fedoraproject.org. 22 IN A 34.221.3.152
19 }
20
21 ;; OPT PSEUDOSECTION:
22 ; EDNS: version: 0, flags:; udp: 512
23 ;; QUESTION SECTION:
24 ;download.fedoraproject.org. IN A
25 {
26 ;; ANSWER SECTION:
27 download.fedoraproject.org. 300 IN CNAME wildcard.fedoraproject.org.
28 wildcard.fedoraproject.org. 22 IN A 38.145.60.20
29 wildcard.fedoraproject.org. 22 IN A 152.19.134.142
30 wildcard.fedoraproject.org. 22 IN A 67.219.144.68
31 wildcard.fedoraproject.org. 22 IN A 8.43.85.67
32 wildcard.fedoraproject.org. 22 IN A 38.145.60.21
33 wildcard.fedoraproject.org. 22 IN A 152.19.134.198
34 wildcard.fedoraproject.org. 22 IN A 8.43.85.73
35 wildcard.fedoraproject.org. 22 IN A 140.211.169.196
36 wildcard.fedoraproject.org. 22 IN A 34.221.3.152
37 }
38 (
39 ;; Query time: 95 msec
40 ;; SERVER: 2600:6c52:763f:e773:1691:82ff:fe86:3046#53(2600:6c52:763f:e773:1691:82ff:fe86:3046)
...