aboutsummaryrefslogtreecommitdiff
path: root/man/read.md
blob: a43fd1c8ff570d28f206e2f444a06ccb012b6d9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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.