diff options
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. |