Egy ilyet tuti megpróbálnék: #!/bin/bash set -x { volume=`echo "list volumes" | bconsole|grep -i "Append\|Full"|awk '{print $4}'` echo "purge volume=$volume yes" | bconsole } >/tmp/debug.out 2>&1 ♲♻♲