docs: update

This commit is contained in:
Dylan Araps 2018-06-14 09:40:34 +10:00
parent 00100cf945
commit 770dd895bc
1 changed files with 4 additions and 0 deletions

View File

@ -229,7 +229,11 @@ file_data="$(<"file")"
Alternative to the `cat` command.
```sh
# Bash <4
IFS=$'\n' read -d "" -ra file_data < "file"
# Bash 4+
mapfile -t file_data < "file"
```
### Get the first N lines of a file.