From e9ab6b0a3ffcb69ed0868f9ec4b61e8f7ad36d85 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 10 Feb 2023 00:10:40 +0100 Subject: add manuals --- man/read.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 man/read.md (limited to 'man/read.md') 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 +``` + +Concatinate two files + +``` +$ read +``` + +Concatinate a file and stdin + +``` +$ read - +``` + +Read only one line + +``` +$ read -l +``` + + +## Notice + +The **-** stands for the standart input. +The **-l** is mostly useful for a prompt in scripts. -- cgit v1.2.3-70-g09d2