Hello, I currently have managed to get an awk function working inside a for loop that allows me to combine two files based on their headings but what I have not been able to do is print the output to files with variable names.
What I would like to do print the output to a new file with the same string as BITS_PRD.good."${sample##*/}"_relabeled but is this possible to do with awk and print or would it be possible with print? Let me know if I can be more clear about anything! Thank you
AFAIU your requirement is to take above awk 's output into a file, you could do so with a simple re-direction, try as follows and let me know how it goes then(Not tested though).