How can I remove the headers

The name of the pictureThe name of the pictureThe name of the pictureClash 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






share|improve this question





















  • 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














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






share|improve this question





















  • 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












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






share|improve this question













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








share|improve this question












share|improve this question




share|improve this question








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
















  • 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










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





share|improve this answer




























    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.






    share|improve this answer





















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );








       

      draft saved


      draft discarded


















      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






























      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





      share|improve this answer

























        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





        share|improve this answer























          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





          share|improve this answer













          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






          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered Jul 9 at 2:13









          Nasir Riley

          1,494138




          1,494138






















              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.






              share|improve this answer

























                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.






                share|improve this answer























                  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.






                  share|improve this answer













                  iostat -xd 5 | grep -v '/'


                  This would remove all lines from the output of iostat that contains a slash, which only the headers do.







                  share|improve this answer













                  share|improve this answer



                  share|improve this answer











                  answered Jul 9 at 6:44









                  Kusalananda

                  101k13199312




                  101k13199312






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      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













































































                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay