fork download
  1. #!/bin/bash
  2.  
  3. list=("a" "b" "c")
  4. printf -v str "%s/" "${list[@]}"
  5. str="${str%/}"
  6.  
  7. echo "$str"
Success #stdin #stdout 0s 5076KB
stdin
Standard input is empty
stdout
a/b/c