Skip to main content

Questions tagged [tac]

4 votes
2 answers
1k views

I needed to reverse the order of blank-separated words. GNU tac comes to mind and has an -s-option which lets you set the separator: -s, --separator=STRING use STRING as the separator ...
Gyro Gearloose's user avatar
5 votes
4 answers
2k views

Input: hello enrico output: ocirne olleh To do this, I can simply tac a file and pipe the output to rev (or the other way around), so one function that does the job is just this: revtac() { tac &...
Enlico's user avatar
  • 2,362
1 vote
1 answer
319 views

I have a file containing "lines" of text, for now only two lines. I need to create a reversed array of these lines - FIFO style. Using "readarray" in this fashion works fine: readarray -t FileArray &...
user avatar