glenda.party
term% ls -F
term% pwd
$home/manuals/unix_v8/1/rev
term% cat index.txt
REV(1)                      General Commands Manual                     REV(1)



NAME
       rev, revpag - reverse lines or pages

SYNOPSIS
       rev [ file ] ...

       revpag [ option ] ... [ file ] ...

DESCRIPTION
       Rev  copies  the standard input or the named files to the standard out‐
       put, reversing the order of characters in every line.

       Revpag copies the standard input or the named  files  to  the  standard
       output,  reversing  the  order  of  the pages.  (The name `-' means the
       standard input.)  Options define what constitutes a `page':

       -d                                                                                                                                                                       flags
                                                                                                                                                                                the
                                                                                                                                                                                in‐
                                                                                                                                                                                put
                                                                                                                                                                                as
                                                                                                                                                                                troff(1)
                                                                                                                                                                                out‐
                                                                                                                                                                                put;
                                                                                                                                                                                line
                                                                                                                                                                                counts
                                                                                                                                                                                are
                                                                                                                                                                                ig‐
                                                                                                                                                                                nored.

       -f                                                                                                                                                                       ap‐
                                                                                                                                                                                pends
                                                                                                                                                                                a
                                                                                                                                                                                new-
                                                                                                                                                                                page
                                                                                                                                                                                char‐
                                                                                                                                                                                ac‐
                                                                                                                                                                                ter
                                                                                                                                                                                (014)
                                                                                                                                                                                to
                                                                                                                                                                                the
                                                                                                                                                                                last
                                                                                                                                                                                in‐
                                                                                                                                                                                put
                                                                                                                                                                                page
                                                                                                                                                                                (which
                                                                                                                                                                                is
                                                                                                                                                                                the
                                                                                                                                                                                first
                                                                                                                                                                                page
                                                                                                                                                                                on
                                                                                                                                                                                the
                                                                                                                                                                                out‐
                                                                                                                                                                                put),
                                                                                                                                                                                if
                                                                                                                                                                                this
                                                                                                                                                                                page
                                                                                                                                                                                is
                                                                                                                                                                                not
                                                                                                                                                                                of
                                                                                                                                                                                the
                                                                                                                                                                                de‐
                                                                                                                                                                                clared
                                                                                                                                                                                length.

       -l n                                                                                                                                                                     sets
                                                                                                                                                                                the
                                                                                                                                                                                num‐
                                                                                                                                                                                ber
                                                                                                                                                                                of
                                                                                                                                                                                lines
                                                                                                                                                                                per
                                                                                                                                                                                page
                                                                                                                                                                                (66
                                                                                                                                                                                by
                                                                                                                                                                                de‐
                                                                                                                                                                                fault)
                                                                                                                                                                                in
                                                                                                                                                                                the
                                                                                                                                                                                case
                                                                                                                                                                                of
                                                                                                                                                                                or‐
                                                                                                                                                                                di‐
                                                                                                                                                                                nary
                                                                                                                                                                                ASCII
                                                                                                                                                                                in‐
                                                                                                                                                                                put.
                                                                                                                                                                                A
                                                                                                                                                                                new-
                                                                                                                                                                                page
                                                                                                                                                                                char‐
                                                                                                                                                                                ac‐
                                                                                                                                                                                ter
                                                                                                                                                                                (014)
                                                                                                                                                                                is
                                                                                                                                                                                also
                                                                                                                                                                                rec‐
                                                                                                                                                                                og‐
                                                                                                                                                                                nized
                                                                                                                                                                                as
                                                                                                                                                                                a
                                                                                                                                                                                page
                                                                                                                                                                                break.

       -o list                                                                                                                                                                  pro‐
                                                                                                                                                                                duces
                                                                                                                                                                                only
                                                                                                                                                                                pages
                                                                                                                                                                                whose
                                                                                                                                                                                page
                                                                                                                                                                                num‐
                                                                                                                                                                                bers
                                                                                                                                                                                ap‐
                                                                                                                                                                                pear
                                                                                                                                                                                in
                                                                                                                                                                                the
                                                                                                                                                                                comma-
                                                                                                                                                                                sep‐
                                                                                                                                                                                a‐
                                                                                                                                                                                rated
                                                                                                                                                                                list
                                                                                                                                                                                of
                                                                                                                                                                                num‐
                                                                                                                                                                                bers
                                                                                                                                                                                and
                                                                                                                                                                                ranges.
                                                                                                                                                                                A
                                                                                                                                                                                `page
                                                                                                                                                                                num‐
                                                                                                                                                                                ber'
                                                                                                                                                                                means
                                                                                                                                                                                the
                                                                                                                                                                                or‐
                                                                                                                                                                                di‐
                                                                                                                                                                                nal
                                                                                                                                                                                po‐
                                                                                                                                                                                si‐
                                                                                                                                                                                tion
                                                                                                                                                                                of
                                                                                                                                                                                a
                                                                                                                                                                                page
                                                                                                                                                                                in
                                                                                                                                                                                the
                                                                                                                                                                                in‐
                                                                                                                                                                                put.
                                                                                                                                                                                A
                                                                                                                                                                                range
                                                                                                                                                                                n-m
                                                                                                                                                                                means
                                                                                                                                                                                pages
                                                                                                                                                                                n
                                                                                                                                                                                through
                                                                                                                                                                                m;
                                                                                                                                                                                a
                                                                                                                                                                                range
                                                                                                                                                                                -n
                                                                                                                                                                                means
                                                                                                                                                                                from
                                                                                                                                                                                the
                                                                                                                                                                                be‐
                                                                                                                                                                                gin‐
                                                                                                                                                                                ning
                                                                                                                                                                                to
                                                                                                                                                                                page
                                                                                                                                                                                n;
                                                                                                                                                                                a
                                                                                                                                                                                range
                                                                                                                                                                                n-
                                                                                                                                                                                means
                                                                                                                                                                                from
                                                                                                                                                                                page
                                                                                                                                                                                n
                                                                                                                                                                                to
                                                                                                                                                                                the
                                                                                                                                                                                end.
                                                                                                                                                                                Num‐
                                                                                                                                                                                bers
                                                                                                                                                                                and
                                                                                                                                                                                ranges
                                                                                                                                                                                may
                                                                                                                                                                                ap‐
                                                                                                                                                                                pear
                                                                                                                                                                                in
                                                                                                                                                                                any
                                                                                                                                                                                or‐
                                                                                                                                                                                der.

SEE ALSO
       pr(1), troff(1), xcan(1)



                                                                        REV(1)