Unix command to concat 2 files




















Active Oldest Votes. Improve this answer. Nathan Fellman Nathan Fellman 8, 18 18 gold badges 59 59 silver badges 82 82 bronze badges. I don't even know how to use Linux and I knew this. Sounds like a homework question to me : — Shinrai. Gaff Shazmeen Pathan Shazmeen Pathan 69 1 1 silver badge 1 1 bronze badge. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related Hot Network Questions. Question feed. Create a free Team What is Teams? Learn more.

How to concatenate two files in a new one and sort the output in one line Ask Question. Asked 7 years, 3 months ago.

Active 7 years, 3 months ago. Viewed 57k times. Improve this question. Mohamed Ahmed Mohamed Ahmed 1, 6 6 gold badges 16 16 silver badges 23 23 bronze badges. Add a comment. Active Oldest Votes. This could be verified as below. Improve this answer. Community Bot 1. Ramesh Ramesh 36k 41 41 gold badges silver badges bronze badges. POSIX defines the sort utility's purpose so: Sort lines of all the named files together and write the result to the specified output. I like that : — Ramesh.

People overuse cat so much that there are actually pages listing redundant usages of it. Here's one such page: en. And anyways, the point you refer to is a valid point and I have got rid of the useless use of cat. And I believe the zsh and tee approach in the answer should be effective and they do not overuse the cat. Ah, on my end I still see usage of cat sort rather than sort. My bad. Sign up or log in Sign up using Google.



0コメント

  • 1000 / 1000