Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sample AWK Scripts

 
R Keane
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey guys

I am currently attempting to write an AWK interpreter in Java. I think I have a lot of it working, but I have reached the point where the things I test all run as intended. That being said, I am not very creative with my AWK scripts,and I suspect that longer or in-depth scripts might cause problems. Does anyone happen to have some longer script they could share with me, for me to test? Ideally, with a sample input I can use to test as well.

Also, I do know about the JAWK project. My boss at work originally asked me to create this, and it has become a very interesting project so I want to continue it in my free time.

Thanks for the help,
R. Keane
 
Anand Hariharan
Rancher
Posts: 272
C++ Debian VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The gawk implementation bundles several test scripts in its downloadable archive:

http://ftp.gnu.org/gnu/gawk/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic