Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Please give details on how the content of your files looks like. Are all numbers in different lines in these files, or are they all on the same line, or mixed? Commented Nov 7, 2019 at 9:57
  • @AdminBee I've updated please see. Actually I want the output in above format. Commented Nov 7, 2019 at 10:02
  • @MdWasi The question is what the input (e.g. abc.txt) looks like, though. Commented Nov 7, 2019 at 11:46
  • @DonHolgo After run the shell script, arrangement of the data like that I am getting which mentioned above in the question is not as expectation. Commented Nov 8, 2019 at 10:22