Use of AWK instead of R for processing files