1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
function standart_report { local generator="$1" local filter="${2:-print_table | decorate_table}" { #check_darksoft 12>/dev/fd/12 | print_table #| column -t -o " " eval "$generator 12>/dev/fd/12 | $filter" report=$(cat<&12) } 12<<EOF EOF print "$report" echo finish }