#!/bin/bash echo "list jobs catalog=${1} last" | bconsole | grep "${2}\b" | sed 's/|//g;s/,/./g;s/^\s//g;s/ *$//' |sed -e 's/\s\+/,/g'