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>


|