Visit Our UNIX and Linux User Community


Run awk script on windows?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Run awk script on windows?
# 1  
Old 03-12-2013
[Solved]Run awk script on windows?

Hi ,

I am struck with one problem here.

I have awk script which deals with a log file and gives result.
It works perfect on linux. But my problem is I want to run it on windows.
How I can run my awk script on windows?

Please guide me on this.
how to proceed further?

Thanks

pamu

Last edited by pamu; 03-12-2013 at 11:18 AM..
# 2  
Old 03-12-2013
Did you try cygwin?
This User Gave Thanks to balajesuri For This Post:
# 3  
Old 03-12-2013
Quote:
Originally Posted by balajesuri
Did you try cygwin?
Don't want to use any other tool ( need approval for the same)
Is it possible to run without using any tools..?
Is this possible to run using .vbs or .bat ..?
# 4  
Old 03-12-2013
Have you tried the gawk version for windows?
This User Gave Thanks to Franklin52 For This Post:
# 5  
Old 03-12-2013
Quote:
Originally Posted by Franklin52
Have you tried the gawk version for windows?
Not tried yet.
Could you please give me some details about this. So i can proceed further.

Thanks

---------- Post updated at 05:25 PM ---------- Previous update was at 03:06 PM ----------

Hi Franklin52,

Thanks for suggestion.
Tried with gawk version on windows. It works like charm..Smilie

Thanks a lot

for this just need to install gawk for windows and can be used as awk..Smilie

Thanks

pamu
This User Gave Thanks to pamu For This Post:
# 6  
Old 03-12-2013
busybox also comes with its own version of awk, not as complete as gawk, but useful.

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

C Shell script not run with Windows 10

Hi all, I have a script has been writing for Unix or Linux. Now I want to run under Windows 10. is give me Error: if:Badly formed number How to fix this please help *** This is a copy of a part of Script. set absolute_gap = 0 if ($min_p_to_p != "" && $min_p_to_p != "N/A" && $min_p_to_t... (5 Replies)
Discussion started by: dovo
5 Replies

2. Windows & DOS: Issues & Discussions

Run Bash from Windows icon?

Is it possible to run a bash using a by creating an icon or shortcut in windows 7? Everything seems to be for unix or linux and unfortunately my institution is windows. For example, run bash ~/newbatch.sh by clicking on an icon on a users desktop. Cygwin will be installed as well. Thank you... (8 Replies)
Discussion started by: cmccabe
8 Replies

3. Shell Programming and Scripting

To run a shell script in remote server from windows batch file

Hi all, i need to run a shell script on remote server. I have created file .bat file in windows server with following code, c:\Users\Desktop\putty.exe -ssh -pw password user@server ./script.sh i need to run the script.sh in my remote server Above command is not working, any... (4 Replies)
Discussion started by: rammm
4 Replies

4. Homework & Coursework Questions

Can someone run this .awk script?

NOTE: I'm not asking that someone do my project for me nor do I need help with logical part of my homework assignment. I just need someone to run the script on a wireshark file and send me output file. This requires 1min of time from experienced awk user and for me it's pain of learning how to... (2 Replies)
Discussion started by: Review
2 Replies

5. Infrastructure Monitoring

Can someone run this .awk script?

Hi I'm new to do community and I've joined because I need a little help. I'm working a on a school project and I am currently stuck because I must count number of protocol packets from wireshark .pcap file and in order to so I found this .awk script. BEGIN { } { vrijeme = $2; if ($5 ==... (3 Replies)
Discussion started by: Review
3 Replies

6. UNIX for Dummies Questions & Answers

SSH program to run on Windows

Hey, For a couple of months, I was using SecureCRT which was satisfying all my needs (keyboard-interactive, sftp ...). Its licence got expired and I no longer want to pay for it. Is there any SSH program other than Putty, u would suggest as free or less expensive with a user interface like... (3 Replies)
Discussion started by: royalliege
3 Replies

7. Shell Programming and Scripting

Run KSH script in Windows machine

Hi i created a unix script ksh that goes to a specific folder/xyz/abc, searches for all the .txt files in it and perform some operation on these text file. It runs well in Unix server(machine) Now this script needs to be run on a windows machine having the same folder structure(that is look... (1 Reply)
Discussion started by: mad_man12
1 Replies

8. UNIX for Dummies Questions & Answers

how to run script from awk

Hi Friends, I'm trying to retrigger a script if the IN_FILE is empty(except the first line) how many I do this? script need to be retriggered: /local/temp/scriptex.ksh right now I have awk '{if ($2 == "") {cd /local/temp ./scriptex.ksh}}' $IN_FILE but doesn't work Thanks (2 Replies)
Discussion started by: UNovIX
2 Replies

9. Shell Programming and Scripting

Run Shell Script into AWK

Hi Guys.. How to run a Shell Script into AWK instruction :confused::confused: (3 Replies)
Discussion started by: gandarez
3 Replies

Featured Tech Videos