From e11ac483068d3b50f1d5a5d2dd37f2621b6b94b1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 16 Jun 2018 09:19:11 +1000 Subject: [PATCH] misc: cleanup --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5eef39c..e56ff59 100644 --- a/README.md +++ b/README.md @@ -759,7 +759,7 @@ Alternative to `wc -l`. ```sh lines() { - # Usage lines "file" + # Usage: lines "file" mapfile -tn 0 lines < "$1" printf '%s\n' "${#lines[@]}" } @@ -772,7 +772,7 @@ compatible but it's slower for bigger files. ```sh lines_loop() { - # Usage lines_loop "file" + # Usage: lines_loop "file" count=0 while IFS= read -r _; do ((count++)) @@ -1367,4 +1367,3 @@ ls # command command ls ``` -