Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
make a join function in bash script arrays
Alex
Programming language:
Shell/Bash
2021-04-18 05:41:53
3
Q:
make a join function in bash script arrays
Alessio Pinato
Code:
Shell/Bash
2021-02-05 00:27:41
function join_by { local d=$1; shift; local f=$1; shift; printf %s "$f" "${@/#/$d}"; }
0
Tags
array
function
make
script
Related
bash combine output from two commands
combine strings bash
powershell join array
bash concatenate two columns
New to Communities?
Join the community