Copying files in AWK

Hi all
i want copying f1 to f2.
i wrote script like:
wk '
BEGIN {

}
{
print $1; # just for example

}
END {
print "copying the file"
cpcmd= cp "f1" "f4"
system(cpcmd);

}' f3

please help me on this

Hope this is not an homework

You can use like

awk '{ print } ' f1 > f2

incase, if you want to append f1 to f2 you could try this:

 awk '{ print } ' f1 >> f2 

how can run CP command in awk program.

awk '{system("cp f1 f2")}' f3