Ideal column widths in lessless --quit-if-one-screen without --no-initCan I use the mouse to properly select...
Bypass with wrong cvv of debit card and getting OTP
How did Einstein know the speed of light was constant?
What's the big deal about the Nazgûl losing their horses?
How can power levels matter in a magic system that emphasizes control?
Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?
What is the difference between a historical drama and a period drama?
Who pays for increased security measures on flights to the US?
What instances can be solved today by modern solvers (pure LP)?
Has there ever been a cold war other than between the U.S. and the U.S.S.R.?
Do intermediate subdomains need to exist?
Sleepy tired vs physically tired
Data normalization before or after train-test split?
What does this value mean in a BJT datasheet?
Term for a character that only exists to be talked to
Advice for making/keeping shredded chicken moist?
How can I effectively map a multi-level dungeon?
Why did C++11 make std::string::data() add a null terminating character?
Was Wolfgang Unzicker the last Amateur GM?
Using Sed to add counter to keyword
How might boat designs change in order to allow them to be pulled by dragons?
How to calculate a conditional PDF in mathematica?
Speeding up thousands of string parses
What is meaning of 4 letter abbreviations in Roman names like Titus Flavius T. f. T. n. Sabinus?
About opening an LLC with little to report in the beginning
Ideal column widths in less
less --quit-if-one-screen without --no-initCan I use the mouse to properly select text in less?Can 'less -F' be usefully combined with termcap initialization?Is there a way for “less” to truncate lines and still exit after < 1 screen?How to configure `less` to print starting from the top of terminal window?awk / sed / etc. concatenating colums in one fileHow do I add multiple “+” commands into less from the command lineHow to configure less to read non-displayed data into a buffer?less -S not workingautomatically quit less after a short time
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Is there a way to emulate/improve on the behavior of BSD's column -t in less? i.e. to set the value of less -x/--tabs=... automatically so that each column is 2 characters wider than the widest encountered value in this column?
command-line less
|
show 1 more comment
Is there a way to emulate/improve on the behavior of BSD's column -t in less? i.e. to set the value of less -x/--tabs=... automatically so that each column is 2 characters wider than the widest encountered value in this column?
command-line less
3
Why notcolumn -t ... | less?
– Arkadiusz Drabczyk
Apr 26 '17 at 19:55
This is what I'm currently doing, but native support would be more practical, if it exists
– n.caillou
Apr 26 '17 at 23:50
Why do you think it would be more practical? I don't think so. InUnixthere should be many small programs doing simple things and doing complex things together.
– Arkadiusz Drabczyk
Apr 27 '17 at 14:17
This is entirely a matter of opinion, but I don't think thatvi,emacsor evennanoare simple at all. I would argue thatlessis already a text user interface with advanced functionalities anyway; if I wanted absolute simplicity I'd stick withhead,tail&sed.
– n.caillou
Apr 27 '17 at 16:09
1
I know it's a matter of opinion, I expressed mine. Now, if you think thatlessshould have this option nothing stops you from adding it and sending a patch to the maintainers.
– Arkadiusz Drabczyk
Apr 27 '17 at 16:22
|
show 1 more comment
Is there a way to emulate/improve on the behavior of BSD's column -t in less? i.e. to set the value of less -x/--tabs=... automatically so that each column is 2 characters wider than the widest encountered value in this column?
command-line less
Is there a way to emulate/improve on the behavior of BSD's column -t in less? i.e. to set the value of less -x/--tabs=... automatically so that each column is 2 characters wider than the widest encountered value in this column?
command-line less
command-line less
asked Apr 26 '17 at 19:47
n.cailloun.caillou
3192 silver badges6 bronze badges
3192 silver badges6 bronze badges
3
Why notcolumn -t ... | less?
– Arkadiusz Drabczyk
Apr 26 '17 at 19:55
This is what I'm currently doing, but native support would be more practical, if it exists
– n.caillou
Apr 26 '17 at 23:50
Why do you think it would be more practical? I don't think so. InUnixthere should be many small programs doing simple things and doing complex things together.
– Arkadiusz Drabczyk
Apr 27 '17 at 14:17
This is entirely a matter of opinion, but I don't think thatvi,emacsor evennanoare simple at all. I would argue thatlessis already a text user interface with advanced functionalities anyway; if I wanted absolute simplicity I'd stick withhead,tail&sed.
– n.caillou
Apr 27 '17 at 16:09
1
I know it's a matter of opinion, I expressed mine. Now, if you think thatlessshould have this option nothing stops you from adding it and sending a patch to the maintainers.
– Arkadiusz Drabczyk
Apr 27 '17 at 16:22
|
show 1 more comment
3
Why notcolumn -t ... | less?
– Arkadiusz Drabczyk
Apr 26 '17 at 19:55
This is what I'm currently doing, but native support would be more practical, if it exists
– n.caillou
Apr 26 '17 at 23:50
Why do you think it would be more practical? I don't think so. InUnixthere should be many small programs doing simple things and doing complex things together.
– Arkadiusz Drabczyk
Apr 27 '17 at 14:17
This is entirely a matter of opinion, but I don't think thatvi,emacsor evennanoare simple at all. I would argue thatlessis already a text user interface with advanced functionalities anyway; if I wanted absolute simplicity I'd stick withhead,tail&sed.
– n.caillou
Apr 27 '17 at 16:09
1
I know it's a matter of opinion, I expressed mine. Now, if you think thatlessshould have this option nothing stops you from adding it and sending a patch to the maintainers.
– Arkadiusz Drabczyk
Apr 27 '17 at 16:22
3
3
Why not
column -t ... | less?– Arkadiusz Drabczyk
Apr 26 '17 at 19:55
Why not
column -t ... | less?– Arkadiusz Drabczyk
Apr 26 '17 at 19:55
This is what I'm currently doing, but native support would be more practical, if it exists
– n.caillou
Apr 26 '17 at 23:50
This is what I'm currently doing, but native support would be more practical, if it exists
– n.caillou
Apr 26 '17 at 23:50
Why do you think it would be more practical? I don't think so. In
Unix there should be many small programs doing simple things and doing complex things together.– Arkadiusz Drabczyk
Apr 27 '17 at 14:17
Why do you think it would be more practical? I don't think so. In
Unix there should be many small programs doing simple things and doing complex things together.– Arkadiusz Drabczyk
Apr 27 '17 at 14:17
This is entirely a matter of opinion, but I don't think that
vi, emacs or even nano are simple at all. I would argue that less is already a text user interface with advanced functionalities anyway; if I wanted absolute simplicity I'd stick with head, tail & sed.– n.caillou
Apr 27 '17 at 16:09
This is entirely a matter of opinion, but I don't think that
vi, emacs or even nano are simple at all. I would argue that less is already a text user interface with advanced functionalities anyway; if I wanted absolute simplicity I'd stick with head, tail & sed.– n.caillou
Apr 27 '17 at 16:09
1
1
I know it's a matter of opinion, I expressed mine. Now, if you think that
less should have this option nothing stops you from adding it and sending a patch to the maintainers.– Arkadiusz Drabczyk
Apr 27 '17 at 16:22
I know it's a matter of opinion, I expressed mine. Now, if you think that
less should have this option nothing stops you from adding it and sending a patch to the maintainers.– Arkadiusz Drabczyk
Apr 27 '17 at 16:22
|
show 1 more comment
1 Answer
1
active
oldest
votes
I use the following command, and it works wonders displaying tabular data. It is saved as a function in my environment, and it can take data from stdin and file paths. I like this feature because, with awk, I can filter out the information I don't care about in large text files and then send it to a reader.
powerReader() { column -t -s$'t' "$@" | less -S; }
add a comment |
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
});
}
});
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%2f361499%2fideal-column-widths-in-less%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
I use the following command, and it works wonders displaying tabular data. It is saved as a function in my environment, and it can take data from stdin and file paths. I like this feature because, with awk, I can filter out the information I don't care about in large text files and then send it to a reader.
powerReader() { column -t -s$'t' "$@" | less -S; }
add a comment |
I use the following command, and it works wonders displaying tabular data. It is saved as a function in my environment, and it can take data from stdin and file paths. I like this feature because, with awk, I can filter out the information I don't care about in large text files and then send it to a reader.
powerReader() { column -t -s$'t' "$@" | less -S; }
add a comment |
I use the following command, and it works wonders displaying tabular data. It is saved as a function in my environment, and it can take data from stdin and file paths. I like this feature because, with awk, I can filter out the information I don't care about in large text files and then send it to a reader.
powerReader() { column -t -s$'t' "$@" | less -S; }
I use the following command, and it works wonders displaying tabular data. It is saved as a function in my environment, and it can take data from stdin and file paths. I like this feature because, with awk, I can filter out the information I don't care about in large text files and then send it to a reader.
powerReader() { column -t -s$'t' "$@" | less -S; }
edited 12 mins ago
muru
40.9k5 gold badges99 silver badges172 bronze badges
40.9k5 gold badges99 silver badges172 bronze badges
answered 15 mins ago
juanmonroynietojuanmonroynieto
34 bronze badges
34 bronze badges
add a comment |
add a comment |
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%2f361499%2fideal-column-widths-in-less%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
3
Why not
column -t ... | less?– Arkadiusz Drabczyk
Apr 26 '17 at 19:55
This is what I'm currently doing, but native support would be more practical, if it exists
– n.caillou
Apr 26 '17 at 23:50
Why do you think it would be more practical? I don't think so. In
Unixthere should be many small programs doing simple things and doing complex things together.– Arkadiusz Drabczyk
Apr 27 '17 at 14:17
This is entirely a matter of opinion, but I don't think that
vi,emacsor evennanoare simple at all. I would argue thatlessis already a text user interface with advanced functionalities anyway; if I wanted absolute simplicity I'd stick withhead,tail&sed.– n.caillou
Apr 27 '17 at 16:09
1
I know it's a matter of opinion, I expressed mine. Now, if you think that
lessshould have this option nothing stops you from adding it and sending a patch to the maintainers.– Arkadiusz Drabczyk
Apr 27 '17 at 16:22