bash - Concatenate output of two commands into one line -


I have a very basic shell script here:

  Book in Alt_moabit Book_arrival Leave Door_flowers in laptop laptop for 10 12 15 1 9 22 25 32 39 45 60 in Do I in 0 1 Do "$ file \ t $ qp \ t $ i" & gt; & Gt; Psnr.txt ./command & gt; $ File- $ qp-psnr.txt 2 & gt; & Gt; Psnr.txt does   

command calculates some PSNR values ​​and file a comprehensive summary for each combination of the file Writes in, qp and i . This is right.

2 & gt; & Gt; One line information that I really need but when it is executed, I get:

  Alt_moabit 10 0 Total 47,8221 50,632 950,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   

I What is needed, however, is this:

  Alt_moabit 10 0 Total 47,8221 50,632 950,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 How can I get it?  

(If you think that the title is free to change then please do one appropriate))

The eNow version of the utility (GNU version) is the -n option to leave the follow-up of Newline. Use it on your first echo, perhaps you have to place some space after the first line or the second place for readability.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -