# Print a comma-separated list of background jobs echo ${$(echo `jobs | cut -d' ' -f6`)/[[:space:]]/,}