diff --git a/MBCPApp/common.sh b/MBCPApp/common.sh index a300c4a..945a3ae 100644 --- a/MBCPApp/common.sh +++ b/MBCPApp/common.sh @@ -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]}"