[glug-t] One Day One GNU/Linux Command (TAC)
- From: Bharathi Subramanian <sbharathi@xxxxxxxxxxxxx>
- To: VEC-FOSS <vecfoss@xxxxxxxxxxxxxxxx>, GNU/Linux Users Group - Trichy <glug_t@xxxxxxxxxxxxx>, GNU/Linux User Group of TCE <glugot@xxxxxxxxxxxxx>
- Date: Thu, 24 Apr 2008 10:53:10 +0530 (IST)
One Day One GNU/Linux Command
=============================
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 (TAC) command.
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 passing the Regular expression.
$ tac -r -s '.\|' myfile -- Print the file (Char by Char) in reverse
order.
Read: man tac
HTH :)
--
Bharathi S
---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with
'unsubscribe' as subject.
Website: http://glugt.linuxisle.com
Other related posts: