Changeset View
Changeset View
Standalone View
Standalone View
head/usr.bin/rev/rev.1
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)rev.1 8.1 (Berkeley) 6/9/93 | .\" @(#)rev.1 8.1 (Berkeley) 6/9/93 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd June 9, 1993 | .Dd June 27, 2020 | ||||
.Dt REV 1 | .Dt REV 1 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm rev | .Nm rev | ||||
.Nd reverse lines of a file | .Nd reverse lines of a file | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Nm | .Nm | ||||
.Op Ar | .Op Ar | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The | The | ||||
.Nm | .Nm | ||||
utility copies the specified files to the standard output, reversing the | utility copies the specified files to the standard output, reversing the | ||||
order of characters in every line. | order of characters in every line. | ||||
If no files are specified, the standard input is read. | If no files are specified, the standard input is read. | ||||
.Sh EXAMPLES | |||||
Reverse the text from stdin: | |||||
.Bd -literal -offset indent | |||||
$ echo -e "reverse \et these\entwo lines" | rev | |||||
eseht esrever | |||||
senil owt | |||||
.Ed |