Wednesday, February 17, 2010

What is the tac command?

The tac command is used to display a file line-by-line backwards. The syntax of the tac command is as follows:

tac [OPTION]… [FILE]…

Where,

Option Description
-b, –before Attaches a separator before, instead of after.
-r, –regex Interprets the separator as a regular expression.
-s, –separator=STRING Uses STRING as the separator instead of newline.
Share/Bookmark

No comments:

Post a Comment