I was reading this thread. The command tail -c +K /tmp/1
outputs bytes starting with the Kth of each file.
From man tail
-c, --bytes=K
output the last K bytes; alternatively, use -c +K to output
bytes starting with the Kth of each file
I would like to find any tool which does this reverse i.e. start to read from the end of the file and read to the beginning of the file.
How can you do the reverse of tail -c +K
?
abc\n
becomes\ncba