#!/bin/bash # Joins all arguments by the delimiter. # $1 - delimiter (e.g. ,) # $2+ - strings to be joined by the delimeter function string_join_array { local IFS="$1"; shift; echo "$*"; }