Why do cat and more wrap lines differently? The Next CEO of Stack OverflowWhy the inconsistency with using cat vs. echo piped to this sed command?Selectively record commands and output from terminal to MySQL tableMac OS X combine cp and cat to sequentially copy and rename files in listHow to improve my unix skills and learn more advanced topics?Wrap all lines with character sequence in vimHow to upload a file and then check it and run some other commands using only ssh, cat, and diff in a single SSH session?bash script that incorporates content from a file as part of a commandKeep terminal input line at the top of the terminal?more command displays how many lines at a time?How to use bash cat * to wrap?

Can you teleport closer to a creature you are Frightened of?

Yu-Gi-Oh cards in Python 3

0-rank tensor vs vector in 1D

Expectation in a stochastic differential equation

Help/tips for a first time writer?

My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?

Is it convenient to ask the journal's editor for two additional days to complete a review?

Does Germany produce more waste than the US?

Is there a way to save my career from absolute disaster?

How to find image of a complex function with given constraints?

Redefining symbol midway through a document

I dug holes for my pergola too wide

Defamation due to breach of confidentiality

Won the lottery - how do I keep the money?

Physiological effects of huge anime eyes

Which one is the true statement?

Is it professional to write unrelated content in an almost-empty email?

What CSS properties can the br tag have?

IC has pull-down resistors on SMBus lines?

What day is it again?

Spaces in which all closed sets are regular closed

Reshaping json / reparing json inside shell script (remove trailing comma)

What was Carter Burke's job for "the company" in Aliens?

Would a grinding machine be a simple and workable propulsion system for an interplanetary spacecraft?



Why do cat and more wrap lines differently?



The Next CEO of Stack OverflowWhy the inconsistency with using cat vs. echo piped to this sed command?Selectively record commands and output from terminal to MySQL tableMac OS X combine cp and cat to sequentially copy and rename files in listHow to improve my unix skills and learn more advanced topics?Wrap all lines with character sequence in vimHow to upload a file and then check it and run some other commands using only ssh, cat, and diff in a single SSH session?bash script that incorporates content from a file as part of a commandKeep terminal input line at the top of the terminal?more command displays how many lines at a time?How to use bash cat * to wrap?










0















It seems that more adds line breaks, whereas cat does not. As a result cat results will change to fit the terminal window if I resize the window, whereas more results stay put with the line breaks added the first time. My question is why, and is there any way to make more behave like cat? (I really don't like this setting of more, when I copy I end up getting the line breaks that I don't want.)










share|improve this question







New contributor




welkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    0















    It seems that more adds line breaks, whereas cat does not. As a result cat results will change to fit the terminal window if I resize the window, whereas more results stay put with the line breaks added the first time. My question is why, and is there any way to make more behave like cat? (I really don't like this setting of more, when I copy I end up getting the line breaks that I don't want.)










    share|improve this question







    New contributor




    welkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      0












      0








      0








      It seems that more adds line breaks, whereas cat does not. As a result cat results will change to fit the terminal window if I resize the window, whereas more results stay put with the line breaks added the first time. My question is why, and is there any way to make more behave like cat? (I really don't like this setting of more, when I copy I end up getting the line breaks that I don't want.)










      share|improve this question







      New contributor




      welkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      It seems that more adds line breaks, whereas cat does not. As a result cat results will change to fit the terminal window if I resize the window, whereas more results stay put with the line breaks added the first time. My question is why, and is there any way to make more behave like cat? (I really don't like this setting of more, when I copy I end up getting the line breaks that I don't want.)







      linux cat more






      share|improve this question







      New contributor




      welkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      welkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      welkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 days ago









      welkinwelkin

      62




      62




      New contributor




      welkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      welkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      welkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes


















          2














          Reading man more:




          -f Count logical lines, rather than screen lines (i.e., long lines are not folded).




          preceded by:




          OPTIONS

          Options are also taken from the environment variable MORE
          (make sure to precede them with a dash (-)) but command-line options
          will override those.




          So at your convenience you can either do:



          more -f /some/file/with/long/lines


          or export it in the MORE variable:



          $ export MORE=-f
          $ more /some/file/with/long/lines


          This should probably be put in some shell login script such as $HOME/.profile.






          share|improve this answer























          • I saw you asked "why" and admit I'm still dumbfounded at what historical reason probably related to vt100 behaviour or email conventions or even very old printer output (3 random wild guesses) made want having more doing this.

            – A.B
            2 days ago












          • ah, I didn't realize 'fold' means something different from 'wrap' here. Thanks so much!!

            – welkin
            2 days ago











          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          welkin is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509449%2fwhy-do-cat-and-more-wrap-lines-differently%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          Reading man more:




          -f Count logical lines, rather than screen lines (i.e., long lines are not folded).




          preceded by:




          OPTIONS

          Options are also taken from the environment variable MORE
          (make sure to precede them with a dash (-)) but command-line options
          will override those.




          So at your convenience you can either do:



          more -f /some/file/with/long/lines


          or export it in the MORE variable:



          $ export MORE=-f
          $ more /some/file/with/long/lines


          This should probably be put in some shell login script such as $HOME/.profile.






          share|improve this answer























          • I saw you asked "why" and admit I'm still dumbfounded at what historical reason probably related to vt100 behaviour or email conventions or even very old printer output (3 random wild guesses) made want having more doing this.

            – A.B
            2 days ago












          • ah, I didn't realize 'fold' means something different from 'wrap' here. Thanks so much!!

            – welkin
            2 days ago















          2














          Reading man more:




          -f Count logical lines, rather than screen lines (i.e., long lines are not folded).




          preceded by:




          OPTIONS

          Options are also taken from the environment variable MORE
          (make sure to precede them with a dash (-)) but command-line options
          will override those.




          So at your convenience you can either do:



          more -f /some/file/with/long/lines


          or export it in the MORE variable:



          $ export MORE=-f
          $ more /some/file/with/long/lines


          This should probably be put in some shell login script such as $HOME/.profile.






          share|improve this answer























          • I saw you asked "why" and admit I'm still dumbfounded at what historical reason probably related to vt100 behaviour or email conventions or even very old printer output (3 random wild guesses) made want having more doing this.

            – A.B
            2 days ago












          • ah, I didn't realize 'fold' means something different from 'wrap' here. Thanks so much!!

            – welkin
            2 days ago













          2












          2








          2







          Reading man more:




          -f Count logical lines, rather than screen lines (i.e., long lines are not folded).




          preceded by:




          OPTIONS

          Options are also taken from the environment variable MORE
          (make sure to precede them with a dash (-)) but command-line options
          will override those.




          So at your convenience you can either do:



          more -f /some/file/with/long/lines


          or export it in the MORE variable:



          $ export MORE=-f
          $ more /some/file/with/long/lines


          This should probably be put in some shell login script such as $HOME/.profile.






          share|improve this answer













          Reading man more:




          -f Count logical lines, rather than screen lines (i.e., long lines are not folded).




          preceded by:




          OPTIONS

          Options are also taken from the environment variable MORE
          (make sure to precede them with a dash (-)) but command-line options
          will override those.




          So at your convenience you can either do:



          more -f /some/file/with/long/lines


          or export it in the MORE variable:



          $ export MORE=-f
          $ more /some/file/with/long/lines


          This should probably be put in some shell login script such as $HOME/.profile.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 days ago









          A.BA.B

          5,6221829




          5,6221829












          • I saw you asked "why" and admit I'm still dumbfounded at what historical reason probably related to vt100 behaviour or email conventions or even very old printer output (3 random wild guesses) made want having more doing this.

            – A.B
            2 days ago












          • ah, I didn't realize 'fold' means something different from 'wrap' here. Thanks so much!!

            – welkin
            2 days ago

















          • I saw you asked "why" and admit I'm still dumbfounded at what historical reason probably related to vt100 behaviour or email conventions or even very old printer output (3 random wild guesses) made want having more doing this.

            – A.B
            2 days ago












          • ah, I didn't realize 'fold' means something different from 'wrap' here. Thanks so much!!

            – welkin
            2 days ago
















          I saw you asked "why" and admit I'm still dumbfounded at what historical reason probably related to vt100 behaviour or email conventions or even very old printer output (3 random wild guesses) made want having more doing this.

          – A.B
          2 days ago






          I saw you asked "why" and admit I'm still dumbfounded at what historical reason probably related to vt100 behaviour or email conventions or even very old printer output (3 random wild guesses) made want having more doing this.

          – A.B
          2 days ago














          ah, I didn't realize 'fold' means something different from 'wrap' here. Thanks so much!!

          – welkin
          2 days ago





          ah, I didn't realize 'fold' means something different from 'wrap' here. Thanks so much!!

          – welkin
          2 days ago










          welkin is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          welkin is a new contributor. Be nice, and check out our Code of Conduct.












          welkin is a new contributor. Be nice, and check out our Code of Conduct.











          welkin is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509449%2fwhy-do-cat-and-more-wrap-lines-differently%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

          Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

          Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.