fix: common.sh: usage guide

count

Signed-off-by: fukiame <fukiame@proton.me>
This commit is contained in:
Hikarie Fukirei 2026-02-07 21:53:40 +07:00
commit 492fec1724

View file

@ -3,7 +3,7 @@
# imported from https://github.com/dylanaraps/pure-bash-bible
bb_split() {
# Usage: split "string" "delimiter"
# Usage: split "string" "delimiter" "count"
IFS=$'\n' read -d "" -ra arr <<< "${1//$2/$'\n'}"
# printf '%s\n' "${arr[@]}"
printf '%s\n' "${arr[$3]}"