How can I remove the headers
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I would like to remove both headers (that are incidentally repeated). Any solution for it?
[root@report]# iostat -xd 5
Linux 3.10.0-693.21.1.el7.x86_64 (mdds-pgbackup-01) 07/05/2018 _x86_64_ (2 CPU)
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
vda 0.07 0.28 0.31 4.22 9.25 28.56 16.72 0.08 16.70 38.40 15.12 5.92 2.68
scd0 0.00 0.00 0.00 0.00 0.00 0.00 7.99 0.00 0.88 0.88 0.00 0.88 0.00
dm-0 0.00 0.00 0.28 3.01 8.86 28.13 22.50 0.05 16.58 41.32 14.27 8.11 2.67
dm-1 0.00 0.00 0.09 0.11 0.38 0.43 8.04 0.00 6.45 8.44 4.72 1.00 0.02
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
vda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
expected output:
[root@report]# iostat -xd 5
vda 0.07 0.28 0.31 4.22 9.25 28.56 16.72 0.08 16.70 38.40 15.12 5.92 2.68
scd0 0.00 0.00 0.00 0.00 0.00 0.00 7.99 0.00 0.88 0.88 0.00 0.88 0.00
dm-0 0.00 0.00 0.28 3.01 8.86 28.13 22.50 0.05 16.58 41.32 14.27 8.11 2.67
dm-1 0.00 0.00 0.09 0.11 0.38 0.43 8.04 0.00 6.45 8.44 4.72 1.00 0.02
vda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
linux text-processing iostat
add a comment |Â
up vote
0
down vote
favorite
I would like to remove both headers (that are incidentally repeated). Any solution for it?
[root@report]# iostat -xd 5
Linux 3.10.0-693.21.1.el7.x86_64 (mdds-pgbackup-01) 07/05/2018 _x86_64_ (2 CPU)
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
vda 0.07 0.28 0.31 4.22 9.25 28.56 16.72 0.08 16.70 38.40 15.12 5.92 2.68
scd0 0.00 0.00 0.00 0.00 0.00 0.00 7.99 0.00 0.88 0.88 0.00 0.88 0.00
dm-0 0.00 0.00 0.28 3.01 8.86 28.13 22.50 0.05 16.58 41.32 14.27 8.11 2.67
dm-1 0.00 0.00 0.09 0.11 0.38 0.43 8.04 0.00 6.45 8.44 4.72 1.00 0.02
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
vda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
expected output:
[root@report]# iostat -xd 5
vda 0.07 0.28 0.31 4.22 9.25 28.56 16.72 0.08 16.70 38.40 15.12 5.92 2.68
scd0 0.00 0.00 0.00 0.00 0.00 0.00 7.99 0.00 0.88 0.88 0.00 0.88 0.00
dm-0 0.00 0.00 0.28 3.01 8.86 28.13 22.50 0.05 16.58 41.32 14.27 8.11 2.67
dm-1 0.00 0.00 0.09 0.11 0.38 0.43 8.04 0.00 6.45 8.44 4.72 1.00 0.02
vda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
linux text-processing iostat
stackoverflow.com/questions/39698229/â¦
â Kamaraj
Jul 5 at 1:52
1
Do you want to delete both of them or just the 2nd one?
â glenn jackman
Jul 9 at 1:28
I want both of them to be deleted
â Fayne
Jul 9 at 1:41
@Fayne, you should accept the answer that solved your problem, if any. Please, take the tour to learn how to use this site.
â andcoz
Jul 13 at 7:55
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I would like to remove both headers (that are incidentally repeated). Any solution for it?
[root@report]# iostat -xd 5
Linux 3.10.0-693.21.1.el7.x86_64 (mdds-pgbackup-01) 07/05/2018 _x86_64_ (2 CPU)
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
vda 0.07 0.28 0.31 4.22 9.25 28.56 16.72 0.08 16.70 38.40 15.12 5.92 2.68
scd0 0.00 0.00 0.00 0.00 0.00 0.00 7.99 0.00 0.88 0.88 0.00 0.88 0.00
dm-0 0.00 0.00 0.28 3.01 8.86 28.13 22.50 0.05 16.58 41.32 14.27 8.11 2.67
dm-1 0.00 0.00 0.09 0.11 0.38 0.43 8.04 0.00 6.45 8.44 4.72 1.00 0.02
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
vda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
expected output:
[root@report]# iostat -xd 5
vda 0.07 0.28 0.31 4.22 9.25 28.56 16.72 0.08 16.70 38.40 15.12 5.92 2.68
scd0 0.00 0.00 0.00 0.00 0.00 0.00 7.99 0.00 0.88 0.88 0.00 0.88 0.00
dm-0 0.00 0.00 0.28 3.01 8.86 28.13 22.50 0.05 16.58 41.32 14.27 8.11 2.67
dm-1 0.00 0.00 0.09 0.11 0.38 0.43 8.04 0.00 6.45 8.44 4.72 1.00 0.02
vda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
linux text-processing iostat
I would like to remove both headers (that are incidentally repeated). Any solution for it?
[root@report]# iostat -xd 5
Linux 3.10.0-693.21.1.el7.x86_64 (mdds-pgbackup-01) 07/05/2018 _x86_64_ (2 CPU)
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
vda 0.07 0.28 0.31 4.22 9.25 28.56 16.72 0.08 16.70 38.40 15.12 5.92 2.68
scd0 0.00 0.00 0.00 0.00 0.00 0.00 7.99 0.00 0.88 0.88 0.00 0.88 0.00
dm-0 0.00 0.00 0.28 3.01 8.86 28.13 22.50 0.05 16.58 41.32 14.27 8.11 2.67
dm-1 0.00 0.00 0.09 0.11 0.38 0.43 8.04 0.00 6.45 8.44 4.72 1.00 0.02
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
vda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
expected output:
[root@report]# iostat -xd 5
vda 0.07 0.28 0.31 4.22 9.25 28.56 16.72 0.08 16.70 38.40 15.12 5.92 2.68
scd0 0.00 0.00 0.00 0.00 0.00 0.00 7.99 0.00 0.88 0.88 0.00 0.88 0.00
dm-0 0.00 0.00 0.28 3.01 8.86 28.13 22.50 0.05 16.58 41.32 14.27 8.11 2.67
dm-1 0.00 0.00 0.09 0.11 0.38 0.43 8.04 0.00 6.45 8.44 4.72 1.00 0.02
vda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
linux text-processing iostat
edited Jul 9 at 6:59
ctrl-alt-delor
8,68331947
8,68331947
asked Jul 5 at 1:20
Fayne
52
52
stackoverflow.com/questions/39698229/â¦
â Kamaraj
Jul 5 at 1:52
1
Do you want to delete both of them or just the 2nd one?
â glenn jackman
Jul 9 at 1:28
I want both of them to be deleted
â Fayne
Jul 9 at 1:41
@Fayne, you should accept the answer that solved your problem, if any. Please, take the tour to learn how to use this site.
â andcoz
Jul 13 at 7:55
add a comment |Â
stackoverflow.com/questions/39698229/â¦
â Kamaraj
Jul 5 at 1:52
1
Do you want to delete both of them or just the 2nd one?
â glenn jackman
Jul 9 at 1:28
I want both of them to be deleted
â Fayne
Jul 9 at 1:41
@Fayne, you should accept the answer that solved your problem, if any. Please, take the tour to learn how to use this site.
â andcoz
Jul 13 at 7:55
stackoverflow.com/questions/39698229/â¦
â Kamaraj
Jul 5 at 1:52
stackoverflow.com/questions/39698229/â¦
â Kamaraj
Jul 5 at 1:52
1
1
Do you want to delete both of them or just the 2nd one?
â glenn jackman
Jul 9 at 1:28
Do you want to delete both of them or just the 2nd one?
â glenn jackman
Jul 9 at 1:28
I want both of them to be deleted
â Fayne
Jul 9 at 1:41
I want both of them to be deleted
â Fayne
Jul 9 at 1:41
@Fayne, you should accept the answer that solved your problem, if any. Please, take the tour to learn how to use this site.
â andcoz
Jul 13 at 7:55
@Fayne, you should accept the answer that solved your problem, if any. Please, take the tour to learn how to use this site.
â andcoz
Jul 13 at 7:55
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
0
down vote
accepted
The easiest way is just to use `egrep':
iostat -xd 5 | egrep -v "Linux|Device"
egrep
prints lines with multiple strings via extended regular expressions and -v
prints lines not containing those strings which, in this case, are "Linux" and "Device".
Output:
vda 0.07 0.28 0.31 4.22 9.25 28.56 16.72 0.08 16.70 38.40 15.12 5.92 2.68
scd0 0.00 0.00 0.00 0.00 0.00 0.00 7.99 0.00 0.88 0.88 0.00 0.88 0.00
dm-0 0.00 0.00 0.28 3.01 8.86 28.13 22.50 0.05 16.58 41.32 14.27 8.11 2.67
dm-1 0.00 0.00 0.09 0.11 0.38 0.43 8.04 0.00 6.45 8.44 4.72 1.00 0.02
vda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
add a comment |Â
up vote
0
down vote
iostat -xd 5 | grep -v '/'
This would remove all lines from the output of iostat
that contains a slash, which only the headers do.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
The easiest way is just to use `egrep':
iostat -xd 5 | egrep -v "Linux|Device"
egrep
prints lines with multiple strings via extended regular expressions and -v
prints lines not containing those strings which, in this case, are "Linux" and "Device".
Output:
vda 0.07 0.28 0.31 4.22 9.25 28.56 16.72 0.08 16.70 38.40 15.12 5.92 2.68
scd0 0.00 0.00 0.00 0.00 0.00 0.00 7.99 0.00 0.88 0.88 0.00 0.88 0.00
dm-0 0.00 0.00 0.28 3.01 8.86 28.13 22.50 0.05 16.58 41.32 14.27 8.11 2.67
dm-1 0.00 0.00 0.09 0.11 0.38 0.43 8.04 0.00 6.45 8.44 4.72 1.00 0.02
vda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
add a comment |Â
up vote
0
down vote
accepted
The easiest way is just to use `egrep':
iostat -xd 5 | egrep -v "Linux|Device"
egrep
prints lines with multiple strings via extended regular expressions and -v
prints lines not containing those strings which, in this case, are "Linux" and "Device".
Output:
vda 0.07 0.28 0.31 4.22 9.25 28.56 16.72 0.08 16.70 38.40 15.12 5.92 2.68
scd0 0.00 0.00 0.00 0.00 0.00 0.00 7.99 0.00 0.88 0.88 0.00 0.88 0.00
dm-0 0.00 0.00 0.28 3.01 8.86 28.13 22.50 0.05 16.58 41.32 14.27 8.11 2.67
dm-1 0.00 0.00 0.09 0.11 0.38 0.43 8.04 0.00 6.45 8.44 4.72 1.00 0.02
vda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
The easiest way is just to use `egrep':
iostat -xd 5 | egrep -v "Linux|Device"
egrep
prints lines with multiple strings via extended regular expressions and -v
prints lines not containing those strings which, in this case, are "Linux" and "Device".
Output:
vda 0.07 0.28 0.31 4.22 9.25 28.56 16.72 0.08 16.70 38.40 15.12 5.92 2.68
scd0 0.00 0.00 0.00 0.00 0.00 0.00 7.99 0.00 0.88 0.88 0.00 0.88 0.00
dm-0 0.00 0.00 0.28 3.01 8.86 28.13 22.50 0.05 16.58 41.32 14.27 8.11 2.67
dm-1 0.00 0.00 0.09 0.11 0.38 0.43 8.04 0.00 6.45 8.44 4.72 1.00 0.02
vda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
The easiest way is just to use `egrep':
iostat -xd 5 | egrep -v "Linux|Device"
egrep
prints lines with multiple strings via extended regular expressions and -v
prints lines not containing those strings which, in this case, are "Linux" and "Device".
Output:
vda 0.07 0.28 0.31 4.22 9.25 28.56 16.72 0.08 16.70 38.40 15.12 5.92 2.68
scd0 0.00 0.00 0.00 0.00 0.00 0.00 7.99 0.00 0.88 0.88 0.00 0.88 0.00
dm-0 0.00 0.00 0.28 3.01 8.86 28.13 22.50 0.05 16.58 41.32 14.27 8.11 2.67
dm-1 0.00 0.00 0.09 0.11 0.38 0.43 8.04 0.00 6.45 8.44 4.72 1.00 0.02
vda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
scd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
answered Jul 9 at 2:13
Nasir Riley
1,494138
1,494138
add a comment |Â
add a comment |Â
up vote
0
down vote
iostat -xd 5 | grep -v '/'
This would remove all lines from the output of iostat
that contains a slash, which only the headers do.
add a comment |Â
up vote
0
down vote
iostat -xd 5 | grep -v '/'
This would remove all lines from the output of iostat
that contains a slash, which only the headers do.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
iostat -xd 5 | grep -v '/'
This would remove all lines from the output of iostat
that contains a slash, which only the headers do.
iostat -xd 5 | grep -v '/'
This would remove all lines from the output of iostat
that contains a slash, which only the headers do.
answered Jul 9 at 6:44
Kusalananda
101k13199312
101k13199312
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f453510%2fhow-can-i-remove-the-headers%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
stackoverflow.com/questions/39698229/â¦
â Kamaraj
Jul 5 at 1:52
1
Do you want to delete both of them or just the 2nd one?
â glenn jackman
Jul 9 at 1:28
I want both of them to be deleted
â Fayne
Jul 9 at 1:41
@Fayne, you should accept the answer that solved your problem, if any. Please, take the tour to learn how to use this site.
â andcoz
Jul 13 at 7:55