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?
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
linux cat more
New contributor
New contributor
New contributor
asked 2 days ago
welkinwelkin
62
62
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
.
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 havingmore
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
add a comment |
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.
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
Required, but never shown
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
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
.
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 havingmore
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
add a comment |
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
.
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 havingmore
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
add a comment |
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
.
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
.
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 havingmore
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
add a comment |
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 havingmore
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
add a comment |
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.
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.
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
Required, but never shown
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
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
Required, but never shown
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
Required, but never shown
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
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