bash - awk program from solaris machine gives warnings in linux nawk -


I'm trying to run a script that was showing the warning in the Linux machine that was in the solar system nawk: Cmd line: 7: warning: escape sequence \ & lt; 'Plain' is considered as & lt; ' I can not change the version of awk Is there any other way to delete this warning?

Edit: My awk file will simply print the XML tag in the function.

  function PrintExamHeader () {Print "& lt; test"; # I have removed it \}  

Now it is warning the line number, where there is no such pattern.

  BEGIN {# here is giving this warning OFS = ""; Index for # Series Structure IDX = 1; Number = idx ++; IATATE = IDX ++; # And 3 more times on such lines = idx ++; Date = idx ++;  

Warning (GNU awk ; On some Linux systems, is a symlink for GNU awk, gawk ):

  awk 'BEGIN {print} \ & lt; Examine "} '# - & gt; If your output is OK, and all you have to do is get rid of the  warning, just delete  \ .   : 

  awk 'BEGIN {Print & Examination}}' # - & gt; 'Exam'  
< P> If you want to print the \ & lt; test , then you must double backslash:

  awk 'BEGIN { Print "\\ & lt; Exam "} '# - & gt;' \ & lt; test ' 

The alert is trying to tell you that the \ prefix is ​​compulsory Form a no-up is this context , and it is not necessary .


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -