#!/bin/bash list=("a" "b" "c")printf -v str "%s/" "${list[@]}"str="${str%/}" echo "$str"
Standard input is empty
a/b/c
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!