What is the meaning of pos1 and pos2 under sort -k?What is meant by -k1,1 in sortWhat is the difference...

How do carbureted and fuel injected engines compare in high altitude?

What happens when the drag force exceeds the weight of an object falling into earth?

Is there any evidence to support the claim that the United States was "suckered into WW1" by Zionists, made by Benjamin Freedman in his 1961 speech

Company stopped paying my salary. What are my options?

Ugin's Conjurant vs. un-preventable damage

How can Sam Wilson fulfill his future role?

Can I bring back Planetary Romance as a genre?

Was the Highlands Ranch shooting the 115th mass shooting in the US in 2019

What's the difference between "ricochet" and "bounce"?

How to handle DM constantly stealing everything from sleeping characters?

A Latin text with dependency tree

Names of the Six Tastes

Why is there a cap on 401k contributions?

Identity of a supposed anonymous referee revealed through "Description" of the report

Has there been evidence of any other gods?

What can cause an unfrozen indoor copper drain pipe to crack?

TeX Gyre Pagella Math Integral sign much too small

Can I use a 11-23 11-speed shimano cassette with the RD-R8000 11-speed Ultegra Shadow Rear Derailleur (short cage)?

What does the "DS" in "DS-..." US visa application forms stand for?

How can it be that ssh somename works, while nslookup somename does not?

Two (probably) equal real numbers which are not proved to be equal?

Was Mohammed the most popular first name for boys born in Berlin in 2018?

Which spells are in some way related to shadows or the Shadowfell?

How likely are Coriolis-effect-based quirks to develop in starship crew members?



What is the meaning of pos1 and pos2 under sort -k?


What is meant by -k1,1 in sortWhat is the difference between “sort -u” and “sort | uniq”?What should be the buffer size for the sort command?How to sort vertically and horizontally?What is sort doingsort only the first column and uniqwhat is the default delimiter for sort -k optionUnix sort function doesn't completely sort string with numbersWhat is meant by -k1,1 in sortSort everything except the headersort a list numerically and alphabetically






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I want to understand the exact meaning of pos1 and pos2 under sort -k



According to the manual




-k, --key=POS1[,POS2]



See POS syntax below.Start a key at POS1 (origin 1), end it at POS2 (default end of line).




What exactly do pos1 and pos2 mean?



Could anyone explain it clearly in simple terms?



Thanks!










share|improve this question























  • a good explanation here unix.stackexchange.com/questions/255696/…

    – al76
    3 mins ago


















0















I want to understand the exact meaning of pos1 and pos2 under sort -k



According to the manual




-k, --key=POS1[,POS2]



See POS syntax below.Start a key at POS1 (origin 1), end it at POS2 (default end of line).




What exactly do pos1 and pos2 mean?



Could anyone explain it clearly in simple terms?



Thanks!










share|improve this question























  • a good explanation here unix.stackexchange.com/questions/255696/…

    – al76
    3 mins ago














0












0








0








I want to understand the exact meaning of pos1 and pos2 under sort -k



According to the manual




-k, --key=POS1[,POS2]



See POS syntax below.Start a key at POS1 (origin 1), end it at POS2 (default end of line).




What exactly do pos1 and pos2 mean?



Could anyone explain it clearly in simple terms?



Thanks!










share|improve this question














I want to understand the exact meaning of pos1 and pos2 under sort -k



According to the manual




-k, --key=POS1[,POS2]



See POS syntax below.Start a key at POS1 (origin 1), end it at POS2 (default end of line).




What exactly do pos1 and pos2 mean?



Could anyone explain it clearly in simple terms?



Thanks!







sort






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 34 mins ago









Johnny TamJohnny Tam

127111




127111













  • a good explanation here unix.stackexchange.com/questions/255696/…

    – al76
    3 mins ago



















  • a good explanation here unix.stackexchange.com/questions/255696/…

    – al76
    3 mins ago

















a good explanation here unix.stackexchange.com/questions/255696/…

– al76
3 mins ago





a good explanation here unix.stackexchange.com/questions/255696/…

– al76
3 mins ago










0






active

oldest

votes












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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f517901%2fwhat-is-the-meaning-of-pos1-and-pos2-under-sort-k%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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%2f517901%2fwhat-is-the-meaning-of-pos1-and-pos2-under-sort-k%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

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...