From 770dd895bc153cd5a3394a663771c140635c6f46 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 14 Jun 2018 09:40:34 +1000 Subject: [PATCH] docs: update --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 6c0f337..8b86d0e 100644 --- a/README.md +++ b/README.md @@ -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.