LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-22-2004, 02:42 AM   #1
suchi_s
Member
 
Registered: May 2004
Posts: 133

Rep: Reputation: 15
same awk script running on linux 7.2 and linux 10


if same script running on linux 7.2 then givin its output..
but if the script running on linux 10 giving parse error..


command to run the script is
awk -f file_containg_prog inputfile
 
Old 11-22-2004, 05:49 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
The current version of Linux is 2.6 (www.kernel.org). I guess that you're talking about your distribution version, but you haven't said what your distribution is.

With this information, about all I can say is that there is a difference between the awk parser on each operating system. This probably means that there has been a change to the language and so you do have an actual parser error. Without seeing the script or error message, I cannot suggest what that error might be or how to fix it.
 
Old 11-22-2004, 07:47 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Actually the gnu awk version is important.
Code:
awk --version
Then your awk script, or at least the line where it fails, to get an idea.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
About awk script sachin_keluskar Linux - Software 2 06-24-2005 03:19 AM
awk code on linux suchi_s Programming 6 01-13-2005 11:02 PM
awk script forgets tabs iluvatar Linux - Software 2 11-04-2004 01:56 AM
Passing variables from AWK script to my shell script BigLarry Programming 1 06-12-2004 04:32 AM
How do I run an awk script? davee Programming 2 08-12-2003 08:46 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration