I am trying to apply one awk script to all the files in one folder, I am using:for %%i in (*.txt) do (awk -f NormalizeFiles.awk %%i > new\%%i)but then I get the message: Syntactic error near the unexpected element '('I don't know what is the problem. 
How to apply an awk script to multiple files in one folder using a loop
files;awk
It appears you are trying to run input files through awk and save the results as a different file name. Unless you need very special file naming, this should serve:for i in *.txt; do    awk -f NormalizeFiles.awk $i > $i.outdoneAlthough your question is tagged bash, your syntax, as someone pointed out, is not bash, e.g. the misuse of parentheses. The %% syntax is not used correctly, and it doesn't seem germane to your goal; however, you should check out http://www.tldp.org/LDP/abs/abs-guide.pdf if you want to know more about it.