How to change the order of lines in the output file in unix shell scriptShell script too slow for output to...

How can I get more energy without spending coins?

Is there a maximum distance from a planet that a moon can orbit?

Why does the numerical solution of an ODE move away from an unstable equilibrium?

Does ultrasonic bath cleaning damage laboratory volumetric glassware calibration?

Why do textbooks often include the solutions to odd or even numbered problems but not both?

Intuitively, why does putting capacitors in series decrease the equivalent capacitance?

Why do some games show lights shine through walls?

How come I was asked by a CBP officer why I was in the US?

Smooth Julia set for quadratic polynomials

Do flight schools typically have dress codes or expectations?

What are the penalties for overstaying in USA?

Distance Matrix (plugin) - QGIS

What happens when your group is victim of a surprise attack but you can't be surprised?

Is there any evidence that the small canisters (10 liters) of 95% oxygen actually help with altitude sickness?

How well known and how commonly used was Huffman coding in 1979?

MH370 blackbox - is it still possible to retrieve data from it?

How to append a matrix element by element

Does the posterior necessarily follow the same conditional dependence structure as the prior?

Did Karl Marx ever use any example that involved cotton and dollars to illustrate the way capital and surplus value were generated?

Would a two-seat light aircaft with a landing speed of 20 knots and a top speed of 180 knots be technically possible?

A player is constantly pestering me about rules, what do I do as a DM?

Are Finite Automata Turing Complete?

What do you call a weak person's act of taking on bigger opponents?

Can a Horncaller control a Druid who is using Wild Shape?



How to change the order of lines in the output file in unix shell script


Shell script too slow for output to ConkyGetting an output error with command head in shell scriptmissing `]' error in unix shell scriptShell script to list the first or last n lines of a fileShell Script Error - Unable to feed output from one variable to another variableNeed output in separate lines- Shell ScriptHow sort the below filename in order using shell script?Change a word based upon the file contentchange the output format of a text file in unixShell script for telnet for multiple servers from text file






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







0















Getting output in the file:
4
3
2
1



Require:
1
2
3
4










share|improve this question







New contributor



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




















  • en.wikipedia.org/wiki/Cat_(Unix)#tac

    – steeldriver
    9 mins ago











  • Do you want to reverse the order, displaying the last line first, the first line last, etc.?  Or do you want to sort the lines according to their content?  Or something else? … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

    – Scott
    3 mins ago




















0















Getting output in the file:
4
3
2
1



Require:
1
2
3
4










share|improve this question







New contributor



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




















  • en.wikipedia.org/wiki/Cat_(Unix)#tac

    – steeldriver
    9 mins ago











  • Do you want to reverse the order, displaying the last line first, the first line last, etc.?  Or do you want to sort the lines according to their content?  Or something else? … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

    – Scott
    3 mins ago
















0












0








0








Getting output in the file:
4
3
2
1



Require:
1
2
3
4










share|improve this question







New contributor



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











Getting output in the file:
4
3
2
1



Require:
1
2
3
4







shell-script






share|improve this question







New contributor



Dinesh 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



Dinesh 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



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








asked 15 mins ago









DineshDinesh

1




1




New contributor



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




New contributor




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















  • en.wikipedia.org/wiki/Cat_(Unix)#tac

    – steeldriver
    9 mins ago











  • Do you want to reverse the order, displaying the last line first, the first line last, etc.?  Or do you want to sort the lines according to their content?  Or something else? … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

    – Scott
    3 mins ago





















  • en.wikipedia.org/wiki/Cat_(Unix)#tac

    – steeldriver
    9 mins ago











  • Do you want to reverse the order, displaying the last line first, the first line last, etc.?  Or do you want to sort the lines according to their content?  Or something else? … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

    – Scott
    3 mins ago



















en.wikipedia.org/wiki/Cat_(Unix)#tac

– steeldriver
9 mins ago





en.wikipedia.org/wiki/Cat_(Unix)#tac

– steeldriver
9 mins ago













Do you want to reverse the order, displaying the last line first, the first line last, etc.?  Or do you want to sort the lines according to their content?  Or something else? … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

– Scott
3 mins ago







Do you want to reverse the order, displaying the last line first, the first line last, etc.?  Or do you want to sort the lines according to their content?  Or something else? … … … … … … … Please do not respond in comments; edit your question to make it clearer and more complete.

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


}
});






Dinesh 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%2f526326%2fhow-to-change-the-order-of-lines-in-the-output-file-in-unix-shell-script%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








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










draft saved

draft discarded


















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













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












Dinesh 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%2f526326%2fhow-to-change-the-order-of-lines-in-the-output-file-in-unix-shell-script%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...