diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-10 00:10:40 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-10 00:10:40 +0100 |
| commit | e9ab6b0a3ffcb69ed0868f9ec4b61e8f7ad36d85 (patch) | |
| tree | e99eddcf75128810e4afd988bf3ffacff8acf3e6 /man/read.md | |
| parent | 5b47adb57b11acb2318053d710d075d37f669f76 (diff) | |
add manuals
Diffstat (limited to 'man/read.md')
| -rw-r--r-- | man/read.md | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/man/read.md b/man/read.md new file mode 100644 index 0000000..a43fd1c --- /dev/null +++ b/man/read.md @@ -0,0 +1,40 @@ +# read + +Read a file or from standart input. It also concatinates them if given more then one. + +## Usage + +Read from stdin +``` +$ read +``` + +Read from a file + +``` +$ read <file> +``` + +Concatinate two files + +``` +$ read <file> <file> +``` + +Concatinate a file and stdin + +``` +$ read <file> - +``` + +Read only one line + +``` +$ read -l +``` + + +## Notice + +The **-** stands for the standart input. +The **-l** is mostly useful for a prompt in scripts. |