Sorry about the previous wrong example. For GAWK the format is a little bit different than the AWK format. Here is the GAWK format: gawk -F":" '{if($1 == ZZ)...
Any ideas on what this is referring to or how to correct it? It seems to be related to the following: proc run {filename} { set base [file rootname $filename] ...
That particular error message (I assume you mean the one in the subject line) could mean either that gawk could not find gawk itself, or the awk program...
Albert, Thank you. You're right. The issue seemed to be that the gnuwin32 wasn't in the environment variables path. I appreciate the quick response, too. ...
Hi, can someone help me with this? i want the print command to print a double quote mark as part of a string. mawk won't have it. a double quote is a control...
Might try a Single Quote ( ' ) or a backslash-Single Quote ( \' )... if that works you could use a Double Single Quote to give the illusion of a Double Quote...
... HASTA LA VISTA ***BABY*** that was my silver bullet! i tried variants on what you wrote and finally stumbled on the solution: i did: mawk "{print $1,...
Mike... what would happen if you did a: gawk "{print 'word' }" or gawk "{print \"word\" }" (the idea being for the command line interpreter to know what double...
... BINGO!!! that did the trick. i suppose with mawk there's just alot of guesswork involved. oh well, i got done what i wanted to get done. thanks Danny...
Hi frenz How to create index file in gawk? am unable to do this...... If I use sorting and grepping it is taking lot of time. Please anybody help me. and do...
I'm trying to run a .tcl using wish which keeps giving me trouble. This exception is apparently looking for a paticular class (GenerateSQL in this case), but...
Hello friends, My name is Srinivas Chakrpani, I have so many doubts in awk scripting. The scripting tools like perl,php,python can call from a web browser. ...
Srinivas, Here is an awk script I wrote some time ago for adding commas (every 3 digits) into a number. Command line format would be something like: echo...
... the awk file has to be executable in httpd.conf : <IfModule mod_mime.c> ... AddHandler cgi-script awk ... </IfModule> The file index.awk starts with ...
i have the following file; 12345,89 78777,89 56789,40 18978,40 98864,40 21378,41 i want to create a different file like this; ACCTS WITH CODE 89 12345 78777 ...
Read the file with Gawk a line at a time. Set comma as the field separator. On each line, look at the second field. If it is an account number that you haven't...
The algorithm below works best if the file is already pre-sorted based on the Account Code, so using gawk win32 and gsort win32... assume test.txt contains: ...
How does awk handle open files? Suppose I am running a cron job to find files that are downloaded to a directory via sftp. Every 10 minutes, I want to...
Hi All, I'm trying to read a file which looks as below ( There are thousands of these records in the file )- <BEGINREC> ID -!- 359494 -!- ST -!- Outstanding ...
Hi All, I'm trying to read a file which looks as below ( There are thousands of these records in the file )- <BEGINREC> ID -!- 359494 -!- ST -!- Outstanding ...
I'm at a total loss with this one... Here's the script I want to use to inform our customers about a 5¢ (see the problem?) price increase. It's important...