I have simple awk scripts which copies information from one file based on the conditions satisfied and pastes to another. When I execute this script, no eeor is invoked, it just runs without doing anything and when I abort it using ctrl D, it executes END loop and prints Done on the terminal. What is wrong with my script. Any suggestion/advice.
Thank you.
Deepa
Thank you.
Deepa
Code:
#!/bin/awk -f
BEGIN {
f1="all_CopyM.txt";
f2= "all_domega.txt";
}
{
if ($1 == "A" || "T" && $6 == "ASN" || $6 == "GLN" || $6 == "PRO" || $6 == "THR" || $6 == "SER" || $6 == "CYS"){
print $0 f1 > f2 ;
}
}
END {
print "Done";
}
Comment