Concatène la sortie de deux commandes en une seule ligne

J'ai un très de base en shell script ici:

for file in Alt_moabit Book_arrival Door_flowers Leaving_laptop
do
    for qp in 10 12 15 19 22 25 32 39 45 60
    do
        for i in 0 1
        do
            echo "$file\t$qp\t$i" >> psnr.txt
            ./command > $file-$qp-psnr.txt 2>> psnr.txt
        done
    done
done

command calcule certaines valeurs de PSNR et écrit un résumé détaillé d'un fichier pour chaque combinaison de fileqp et i. C'est très bien.

La 2>> sorties d'une ligne d'information que j'ai vraiment besoin. Mais lorsqu'il est exécuté, j'obtiens:

Alt_moabit  10  0
total   47,8221 50,6329 50,1031
Alt_moabit  10  1
total   47,8408 49,9973 49,8197
Alt_moabit  12  0
total   47,0665 50,1457 49,6755
Alt_moabit  12  1
total   47,1193 49,4284 49,3476

Ce que je veux, cependant, est-ce:

Alt_moabit  10  0    total  47,8221 50,6329 50,1031
Alt_moabit  10  1    total  47,8408 49,9973 49,8197
Alt_moabit  12  0    total  47,0665 50,1457 49,6755
Alt_moabit  12  1    total  47,1193 49,4284 49,3476

Comment puis-je y parvenir?

(N'hésitez pas à changer le titre si vous pensez qu'il y a de plus approprié)

source d'informationauteur slhck