In the above written script, how can I make the script to spit out the length of the sequence that is being read? So, after the line printf $out_file "Number of proteins = %d\n\n",$num ; in the above code, I tried - printf $out_file "string length = length($num) ; but nothing happens. What am I doing wrong?