GNU/Linux Command – TAC

tac — Concatenate and Print files in reverse order.
 
Summary:
 
`tac’ copies each file to standard output, reversing the records (lines by default) in each separately. It is doing the reverse function of the CAT command (TAC).
 
Example:
$ tac myfile -- Print the file (Line by Line) in reverse order.  $ tac -r -s '[^a-zA-z0-9-]' myfile -- Print the file (Word by Word) in reverse order, by parsing the Regular expression.  $ tac -r -s '.|' myfile -- Print the file (Char by Char) in reverse order.
Read: man tac

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: