mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:57:35 +00:00
Base: Add more manpages for command-line utilities
This commit is contained in:
parent
5d8585df97
commit
57340dda36
25 changed files with 749 additions and 0 deletions
53
Base/usr/share/man/man1/cat.md
Normal file
53
Base/usr/share/man/man1/cat.md
Normal file
|
@ -0,0 +1,53 @@
|
|||
## Name
|
||||
|
||||
cat - concatenate files to stdout
|
||||
|
||||
## Synopsis
|
||||
|
||||
```**sh
|
||||
$ cat [file...]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
This program passes contents of specified `files` to standard output, in the specified order. If no `file` is specified, or it is `-`, it defaults to standard input.
|
||||
|
||||
## Arguments
|
||||
|
||||
* `file`: Files to print
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
# Display a single file
|
||||
$ cat README.md
|
||||
# SerenityOS
|
||||
|
||||
Graphical Unix-like operating system for x86 computers.
|
||||
...
|
||||
|
||||
# Display standard input
|
||||
$ cat
|
||||
aaa
|
||||
aaa
|
||||
bbb
|
||||
bbb^C
|
||||
|
||||
# Display ls output where each file is in separate line
|
||||
$ ls | cat
|
||||
Desktop
|
||||
Documents
|
||||
Downloads
|
||||
README.md
|
||||
Source
|
||||
js-tests
|
||||
tests
|
||||
web-tests
|
||||
|
||||
# Display multiple files
|
||||
$ echo 123 > test.txt
|
||||
$ echo 456 > test2.txt
|
||||
cat test.txt test2.txt
|
||||
123
|
||||
456
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue