How to tail multiple files without empty lines?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












As I've noticed, a command such as
tail -n +5 a b
prints its output in a format like this:



==>a<==

contents of a from line 5 to $EOF (including line 5)

==>b<==

contents of b from line 5 to $EOF (including line 5)


Is there a way (or perhaps another command) to print just the required contents from the specified line onwards? i.e.:



contents of a from line 5 to $EOF (including line 5)

contents of b from line 5 to $EOF (including line 5)






share|improve this question






















  • from line 5 including the 5th line?
    – RomanPerekhrest
    Nov 5 '17 at 16:11















up vote
-1
down vote

favorite












As I've noticed, a command such as
tail -n +5 a b
prints its output in a format like this:



==>a<==

contents of a from line 5 to $EOF (including line 5)

==>b<==

contents of b from line 5 to $EOF (including line 5)


Is there a way (or perhaps another command) to print just the required contents from the specified line onwards? i.e.:



contents of a from line 5 to $EOF (including line 5)

contents of b from line 5 to $EOF (including line 5)






share|improve this question






















  • from line 5 including the 5th line?
    – RomanPerekhrest
    Nov 5 '17 at 16:11













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











As I've noticed, a command such as
tail -n +5 a b
prints its output in a format like this:



==>a<==

contents of a from line 5 to $EOF (including line 5)

==>b<==

contents of b from line 5 to $EOF (including line 5)


Is there a way (or perhaps another command) to print just the required contents from the specified line onwards? i.e.:



contents of a from line 5 to $EOF (including line 5)

contents of b from line 5 to $EOF (including line 5)






share|improve this question














As I've noticed, a command such as
tail -n +5 a b
prints its output in a format like this:



==>a<==

contents of a from line 5 to $EOF (including line 5)

==>b<==

contents of b from line 5 to $EOF (including line 5)


Is there a way (or perhaps another command) to print just the required contents from the specified line onwards? i.e.:



contents of a from line 5 to $EOF (including line 5)

contents of b from line 5 to $EOF (including line 5)








share|improve this question













share|improve this question




share|improve this question








edited Nov 5 '17 at 17:25









Hauke Laging

53.6k1282130




53.6k1282130










asked Nov 5 '17 at 15:58









Escu Esculescu

123




123











  • from line 5 including the 5th line?
    – RomanPerekhrest
    Nov 5 '17 at 16:11

















  • from line 5 including the 5th line?
    – RomanPerekhrest
    Nov 5 '17 at 16:11
















from line 5 including the 5th line?
– RomanPerekhrest
Nov 5 '17 at 16:11





from line 5 including the 5th line?
– RomanPerekhrest
Nov 5 '17 at 16:11











2 Answers
2






active

oldest

votes

















up vote
3
down vote



accepted










Use the quiet option:



tail -q -n +5 a b





share|improve this answer



























    up vote
    0
    down vote













    The file information is written to stderr, the real data is written to stdout (as both should be). So even if there was no -q option you could throw it away with



    tail ... 2>/dev/null


    And if you redirect the tail output then the file information will not be redirected anyway:



    tail ... >output





    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%2f402673%2fhow-to-tail-multiple-files-without-empty-lines%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
      3
      down vote



      accepted










      Use the quiet option:



      tail -q -n +5 a b





      share|improve this answer
























        up vote
        3
        down vote



        accepted










        Use the quiet option:



        tail -q -n +5 a b





        share|improve this answer






















          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          Use the quiet option:



          tail -q -n +5 a b





          share|improve this answer












          Use the quiet option:



          tail -q -n +5 a b






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 5 '17 at 16:17









          Stephen Kitt

          144k22312377




          144k22312377






















              up vote
              0
              down vote













              The file information is written to stderr, the real data is written to stdout (as both should be). So even if there was no -q option you could throw it away with



              tail ... 2>/dev/null


              And if you redirect the tail output then the file information will not be redirected anyway:



              tail ... >output





              share|improve this answer
























                up vote
                0
                down vote













                The file information is written to stderr, the real data is written to stdout (as both should be). So even if there was no -q option you could throw it away with



                tail ... 2>/dev/null


                And if you redirect the tail output then the file information will not be redirected anyway:



                tail ... >output





                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  The file information is written to stderr, the real data is written to stdout (as both should be). So even if there was no -q option you could throw it away with



                  tail ... 2>/dev/null


                  And if you redirect the tail output then the file information will not be redirected anyway:



                  tail ... >output





                  share|improve this answer












                  The file information is written to stderr, the real data is written to stdout (as both should be). So even if there was no -q option you could throw it away with



                  tail ... 2>/dev/null


                  And if you redirect the tail output then the file information will not be redirected anyway:



                  tail ... >output






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 5 '17 at 17:28









                  Hauke Laging

                  53.6k1282130




                  53.6k1282130



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f402673%2fhow-to-tail-multiple-files-without-empty-lines%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?

                      Displaying single band from multi-band raster using QGIS

                      How many registers does an x86_64 CPU actually have?