60 lines
1.1 KiB
Groff
Executable file
60 lines
1.1 KiB
Groff
Executable file
.TH CAT 1
|
|
.SH NAME
|
|
cat \- concatenate and print files
|
|
.SH SYNOPSIS
|
|
.B cat
|
|
[\fB\-u\fR]
|
|
.IR file ...
|
|
.SH DESCRIPTION
|
|
.B cat
|
|
reads in files one at a time and prints the contents to standard
|
|
output. If \- is read, \fBcat\fR reads from standard input.
|
|
.SH OPTIONS
|
|
.TP
|
|
.BR \-u
|
|
Writes bytes from the input files to standard output without delay
|
|
as each is read. Writing with this flag is unbuffered.
|
|
.SH EXAMPLES
|
|
cat file
|
|
.PP
|
|
.nf
|
|
.RS
|
|
writes the contents of file to standard output
|
|
.RE
|
|
.fi
|
|
.PP
|
|
cat file1 file2 > all_files
|
|
.PP
|
|
.nf
|
|
.RS
|
|
concatenates the files \fBfile1\fR and \fBfile2\fR and writes the
|
|
result to \fBall_files\fR.
|
|
.RE
|
|
.fi
|
|
.PP
|
|
cat file2 >> file1
|
|
.PP
|
|
.nf
|
|
.RS
|
|
appends the contents of \fBfile2\fR into \fBfile1\fR
|
|
.RE
|
|
.fi
|
|
.PP
|
|
cat header_text - > table
|
|
.PP
|
|
.nf
|
|
.RS
|
|
writes the contents of \fBheader_text\fR into \fBtable\fR then
|
|
reads from standard input and writes it into \fBtable\fR
|
|
.RE
|
|
.fi
|
|
.SH SEE ALSO
|
|
.BR more (1)
|
|
.SH AUTHOR
|
|
Written by Kat.
|
|
.SH COPYRIGHT
|
|
Copyright (C) 2019 Katlynn Richey
|
|
.PP
|
|
This software is free software. Feel free to modify it and/or pass
|
|
it around.
|