Extracted awk program from sh script into own code so can use with STDIN.
Created trim script to trim blast output.