Add a tac command, which might be useful when we want to read a file beginning from a specified string without opening the file:
Without a flag (e.g., tac example.txt), print the lines of text from a file in reversed order.
With "-s" and a string (e.g., tac example.txt -s "Hello"), use the first matching string as a separator. Print the text beginning from the separator first, and then print the text before the separator.
Add a
tac
command, which might be useful when we want to read a file beginning from a specified string without opening the file:tac example.txt
), print the lines of text from a file in reversed order.tac example.txt -s "Hello"
), use the first matching string as a separator. Print the text beginning from the separator first, and then print the text before the separator.