|Skip Navigation Links|
|Exit Print View|
|man pages section 1: User Commands Oracle Solaris 11 Express 11/10|
- reverse the characters or lines of one or more files
/usr/bin/rev [-l] [file...]
rev [-l] [file...]
rev copies one or more files to standard output, reversing the order of characters on every line of the file, or reversing the order of lines of the file if -l is specified
The following options are supported:
Reverse the order of the lines of the file, instead of characters.
The following operands are supported:
Specifies the name of the file to use as input.
If file is not specified, or if file is a -, rev copies from standard input starting at the current offset.
The following exit values are returned:
All files copied successfully.
One or more files did not copy.
See attributes(5) for descriptions of the following attributes: