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.

7
  • 2
    I don't have tac on my system ; I don't know if it's robust but I've been using for x in ${mylist}; do revv="${x} ${revv}"; done Commented Jan 11, 2018 at 8:31
  • @arp That's sort of shocking as tac is part of GNU coreutils. But your solution is also a good one. Commented Jan 11, 2018 at 21:45
  • @ACK_stoverflow There are systems out there without Linux userland tools. Commented Feb 15, 2018 at 18:21
  • @ACK_stoverflow That's what I'm saying, yes. Commented Feb 16, 2018 at 6:46
  • Instead of tac, just do tail -r. Commented Feb 20, 2022 at 21:55