OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / gnumaniak / original / man1 / tac.1
1 .\" You may copy, distribute and modify under the terms of the LDP General
2 .\" Public License as specified in the LICENSE file that comes with the
3 .\" gnumaniak distribution
4 .\"
5 .\" The author kindly requests that no comments regarding the "better"
6 .\" suitability or up-to-date notices of any info documentation alternative
7 .\" is added without contacting him first.
8 .\"
9 .\" (C) 2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
10 .\"
11 .\"     GNU tac man page
12 .\"     man pages are NOT obsolete!
13 .\"     <ragnar@ragnar-hojland.com>
14 .TH TAC 1 "7 October 2002" "GNU textutils 2.1"
15 .SH NAME
16 \fBtac\fR \- concatenate and write files in reverse
17 .SH SYNOPSIS
18 .B tac
19 .RB [ \-br "] [" "\-s \fISEPARATOR\fR" "] [" \-\-before "] [" \-\-regex ]
20 .RI [ FILE... ]
21
22 .BR tac " [" \-\-help "] [" \-\-version ]
23 .SH DESCRIPTION
24 .B tac
25 writes each 
26 .I FILE
27 to standard output, reversing the records (lines by default).  If
28 .I FILE
29 is omitted or if is a
30 .RB ` \- ',
31 standard input is used.
32
33 Records are separated by instances of a string (newline by default).  By
34 default, this separator string is attached to the end of the record that
35 it follows in the file.
36
37 Under DOS platforms \fBtac\fR reads files in binary mode.  See \fBcat\fR(1)
38 for more details.
39 .SH OPTIONS
40 .TP
41 .B \-b, \-\-before
42 The separator is attached to the beginning of the record that it
43 precedes in the file.
44 .TP
45 .B \-r, \-\-regex
46 Treat the separator string as a regular expression.
47 .TP
48 .BI "\-s " SEPARATOR ", \-\-separator=" SEPARATOR
49 Use
50 .I SEPARATOR
51 as the record separator, instead of a newline.
52 .TP
53 .B "\-\-help"
54 Print a usage message on standard output and exit successfully.
55 .TP
56 .B "\-\-version"
57 Print version information on standard output then exit successfully.
58 .SH NOTES
59 Report bugs to bug-textutils@gnu.org.
60 .br
61 Man page by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>