docs: update

This commit is contained in:
Dylan Araps
2018-06-14 09:40:34 +10:00
parent 00100cf945
commit 770dd895bc

View File

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