Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Re: How to usin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 2232 of 2236
Post > Topic >>

Re: How to using gawk in Windows

by moonhkt <moonhkt@[EMAIL PROTECTED] > May 9, 2008 at 08:01 PM

On May 10, 4:28 am, Ted Davis <tda...@[EMAIL PROTECTED]
> wrote:
> On Fri, 09 May 2008 10:36:27 -0700, moonhkt wrote:
> > Hi All
>
> > D:\Example\Software\awk>uname -a
> > CYGWIN_NT-5.1 moon 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin
>
> You might prefer a pure Windows port:
> <http://gnuwin32.sourceforge.net/packages/gawk.htm>
>
> There are a few differences from Unix usage, mostly the command line
> syntax and the fact that Windows doesn't implement some functions.
>
> In Windows, the oneliner for your tag.awk would be
>
>   awk "BEGIN{print \"eric\"}"
>
> There is no /dev/null in Windows - it's just 'nul'.
>
> --
> T.E.D. (tda...@[EMAIL PROTECTED]
)

in tag.bat
@[EMAIL PROTECTED]
 off
gawk 'BEGIN{print "eric"}'

In Dos Prompt, run tag.bat ok
D:\Example\Software\awk>tag
eric

D:\Example\Software\awk>tag
eric

Do you know how to run tag.awk in prompt ?

D:\Example\Software\awk>cat tag.awk
#!/usr/bin/gawk
gawk 'BEGIN{print "eric"}'
D:\Example\Software\awk>

like
D:\Example\Software\python>hello1.py
4

D:\Example\Software\python>cat hello1.py
#!/usr/bin/python
# 2007/02/08 eric
print 4
D:\Example\Software\python>




 5 Posts in Topic:
How to using gawk in Windows
moonhkt <moonhkt@[EMAI  2008-05-09 10:36:27 
Re: How to using gawk in Windows
Hermann Peifer <peifer  2008-05-09 20:04:56 
Re: How to using gawk in Windows
Ted Davis <tdavis@[EMA  2008-05-09 15:28:37 
Re: How to using gawk in Windows
moonhkt <moonhkt@[EMAI  2008-05-09 20:01:36 
Re: How to using gawk in Windows
Ted Davis <tdavis@[EMA  2008-05-10 12:24:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 0:38:20 CDT 2008.