I want to print same lines to 2 different files. What I am doing right now is:
print ID[i]" "Value[i]" "TS1[i]" "TS2[i] > "file1.txt"; print ID[i]" "Value[i]" "TS1[i]" "TS2[i] > "file2.txt";
Can I write a single command to redirect it to two different files ?
I don't want to print my whole command output to the multiple files, I want to write some of records based on some condition into multiple files,I am printing this within
awk script so I need an efficient way to do it.