LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   same awk script running on linux 7.2 and linux 10 (https://www.linuxquestions.org/questions/programming-9/same-awk-script-running-on-linux-7-2-and-linux-10-a-257866/)

suchi_s 11-22-2004 02:42 AM

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

rjlee 11-22-2004 05:49 AM

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.

jlliagre 11-22-2004 07:47 AM

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.


All times are GMT -5. The time now is 12:10 PM.