Igawk vs igawk.bat


 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Igawk vs igawk.bat
# 1  
Old 12-14-2014
Code Igawk vs igawk.bat

I use GNU gawk on win32 platforms and standard cmd.exe to run cmd files containing gawk commands. If I were in a unix shell I would use igawk to process "@includes" for awk "libraries" and convert them into a gawk cmd. I know you can use cygwin bash to run igawk in win32 platforms.

I was just wondering if anyone has seen igawk shell script translated into a similar windows cmd file that would process "@includes". Just a thought Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Include file not running using igawk

Greetings. I'm on section 2.7 Including Other Files into Your Program in "The GNU Awk User’s Guide". I am on HP-UX POSIX running GNU Awk 3.1.0 I have written Test1.awk and Test2.awk as shown here: $cat test1.awk BEGIN { print "This is script test1.\n" } $cat test2.awk ... (2 Replies)
Discussion started by: RUCerius
2 Replies

2. Linux

Convert .sh to .bat please

Can someone translate this code to .bat for me? I have no clue. #!/bin/sh WAS_HOME="/opt/websphere/appserver/profiles/AppSrv01" WAS_APP_SERVER="server1" WAS_PROFILE_NAME="AppSrv01" echo "Stopping App Server" "${WAS_HOME}/bin/stopServer.sh" -profileName $WAS_PROFILE_NAME $WAS_APP_SERVER... (1 Reply)
Discussion started by: Blogger11
1 Replies

3. Shell Programming and Scripting

BAT to SH help

First off, let me apologize if I'm posting this in the wrong place! I am a newbie to this forum, to shell scripting and to Linux so please bare with me. I created a script on the windows environment that makes a call to a java application and extracts a return value from the java app. It... (7 Replies)
Discussion started by: arod291
7 Replies

4. Shell Programming and Scripting

Need help with bat file!!!

I need to put/get files from Windows machine to Unix machine and vice-versa. I wrote a text file "ftp1.txt" as below. naga naga06 cd /root/Naga prom off get time.unl bye I wrote another bat file "ftp.bat" as below. ftp -n -s:C:\Users\Naga\Desktop\ftp1.txt IP_ADDRESS but... (2 Replies)
Discussion started by: Naga06
2 Replies

5. Shell Programming and Scripting

bat to shell

I have serverfiles of same game. and there are bat files. I wont to run this on debian. The files are difficult, eg :######################################################################## :# File name: server_start.bat :# Edited Last By: Mike Gleaves (ric) :# V 1.0 1-10-2008 :# Comment:... (5 Replies)
Discussion started by: Qentinios
5 Replies

6. Windows & DOS: Issues & Discussions

.bat script help

hi I need to rediret an content of one file and append it to another file. I need it in .bat script. I tried this, first.txt I love to write script type first.txt >> out.txt type first.txt >> out.txt out.txt I love to write scriptI love to write script you see the... (6 Replies)
Discussion started by: ilugopal
6 Replies

7. Shell Programming and Scripting

.bat or .pl script help

hi I need to rediret an content of one file and append it to another file. I need it in .bat script. I tried this, first.txt I love to write script type first.txt >> out.txt type first.txt >> out.txt out.txt I love to write scriptI love to write script you see the second... (1 Reply)
Discussion started by: ilugopal
1 Replies

8. Shell Programming and Scripting

memory leak in igawk script

Hi, We are having igawk statement calling gawk function and processing a master file, each gawk function have rules and action. We are using associative array to keep the output of each rule and finally printing the associative array. We are seeing the memory is growing incrementally in TOP... (1 Reply)
Discussion started by: satvelucbe
1 Replies

9. Windows & DOS: Issues & Discussions

one question for .bat file

Hi! I'm very sorry for such simple and silly question but I cannot answer it by myself. Can you please help me? In .bat file I should run the C program which is in other directory, and the input configuration file is in this directory too. This dir name is in dirRun variable. The... (3 Replies)
Discussion started by: Anta
3 Replies

10. UNIX for Dummies Questions & Answers

Q about windows bat files

Hi, can you run a windows bat file or a VBscript from a shell script? #!/bin/sh PATH=/ $PATH/test.bat (1 Reply)
Discussion started by: cmac
1 Replies
Login or Register to Ask a Question
IGAWK(1)							 Utility Commands							  IGAWK(1)

NAME
igawk - gawk with include files SYNOPSIS
igawk [ all gawk options ] -f program-file [ -- ] file ... igawk [ all gawk options ] [ -- ] program-text file ... DESCRIPTION
Igawk is a simple shell script that adds the ability to have ``include files'' to gawk(1). AWK programs for igawk are the same as for gawk, except that, in addition, you may have lines like @include getopt.awk in your program to include the file getopt.awk from either the current directory or one of the other directories in the search path. OPTIONS
See gawk(1) for a full description of the AWK language and the options that gawk supports. EXAMPLES
cat << EOF > test.awk @include getopt.awk BEGIN { while (getopt(ARGC, ARGV, "am:q") != -1) ... } EOF igawk -f test.awk SEE ALSO
gawk(1) Effective AWK Programming, Edition 1.0, published by the Free Software Foundation, 1995. AUTHOR
Arnold Robbins (arnold@skeeve.com). Free Software Foundation Nov 3 1999 IGAWK(1)