Есть код:
prt-cache "$mode" "$@" --test "${ignore[@]}" "${install_root[@]}" 2>"$DEV/null" \
| sed -nr '/^-- Packages (in|u|r)/,/^($|\*)/p' \
| sed '/^\($\|--\|\*\)/d'
Пример вывода prt-get:
> prt-get update bash openssh --test
*** prt-cache: test mode
-- Packages updated
bash
openssh
prt-get: updated successfully
*** prt-cache: test mode end
bash
openssh