why is my awk command printing on a newline??????
I am creating a table as follows
Code:
pdb uniprot #ligands Energy Code:
#!bin/bash |
figured it out, I needed a printf in the 1st awk command!
|
I just made a post in your other thread about the use of printf. Please learn how to use it correctly.
Also note that the printf in awk has a slightly different syntax from bash's version (arguments are separated by commas), and is capable of doing more (particularly when working with numbers, due to the full floating-point arithmetic engine). awk's print command is pretty much equal to bash's echo. Speaking of which, I should've mentioned before, you can also use echo -n in bash to print a simple string without a newline (equivalent to "printf '%s'"). Edit: see here for details on gawk's version of printf. http://www.gnu.org/software/gawk/man...tf.html#Printf |
All times are GMT -5. The time now is 11:46 PM. |