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.

1
  • Instead of using an ugly workaround (the pipe) for the downsides of a wrong solution (for loop in processing text), it would be better to think about what you actually need, and to find a good solution for that. You already got one answer for the question you posed, and you would have received other answers, if you'd told up front what you actually want. Here, you're just outputting the data, and to do that, you could just cat indexes.out on the original file, without the space-to-pipe transformation Commented Jul 19, 2019 at 9:08