> rev (1)              - reverse lines of a file
> tac (1)              - concatenate and print files in reverse

Perhaps these could be rephrased to remain short while being a little
less ambiguous.  I'd suggest:

  rev (1)              - reverse the order of characters on every line
  tac (1)              - concatenate and print lines in reversed order

The man page for rev could also state that it deals with unicode
characters.  In other words, it does not just reverse the bytes; it
reverses logical characters even if they are multiple bytes in length.

This means in particular that "rev" can give an error when applied to
eg a binary file, which should be documented in the ERRORS section of
the man page.  Also, because of this issue, "tac | rev" or "rev | tac"
do not serve to reverse all the bytes of the input.

An option to defeat character decoding deal with bytes might be
desirable, but there is no such option.
--
Barak A. Pearlmutter <[EMAIL PROTECTED]>
 Hamilton Institute, NUI Maynooth, Co. Kildare, Ireland
 http://www-bcl.cs.nuim.ie/~barak/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to