At the moment the batch doesn't work - it only creates a file named "--rf.tmp" that contains a path to the folder, where it is executed and the code of the nfeat.bat - "awk -vbr=%2 -f line.awk".
Thanks. The sample input file is attached below. All of them have the same structure. The name is also the same except the number (0 in the attached file, it changes as it's said above - from 0 to 60 000 with the step of 3 000)
The output file should contain 21 lines of the same structure. Each...
Thanks a bunch! Could you recommend me some faqs or something like that about batch syntax? I ain't sure about it...
And another question - I've tried to execute line.awk for one file directly from cmd and the result was wrong - it only printed 2 values in a column, while there should be more...
I'm trying to create a batch which would call awk program and run it for several files, storing the result.
I attach my pathetic attempt herehttp://www.mediafire.com/?addmwgvxwbz3g8i
here %2 depicts the variable, which was earlier introduced in the batch file and refers to filename (it takes values of 0, 3000, 6000 and so on up to 60000) the point is to print for example 3.0 for 3000 and so on, and then after a spce to print the fifth field...
AWK marks all the gaps like errors
I'm a newbie to AWK and now i need to write a script that would extract some numerical values from the source file and print them in an appropriate way to an output file. AWK reports a syntax error concerning operator "if" and { -like gaps. I don't know, what is the problem, everything seems to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.