Re: about "interfaces" file



Pablo Sanchez wrote:
In article <49i0mk$dos@xxxxxxxxxxxxxxxxxxxxx>, terrym@xxxxxxxxxxxx writes:
I wrote the following shell script to convert a *normal* :-)
interfaces file into a TLI interfaces file
[snip]
Pablo Sanchez | Ph # (415) 933.3812 Fax # (415) 933.2821
pablo@xxxxxxx | Pg # (800) 930.5635 -or- pablo_p@xxxxxxxxxxxx

Many thanks, this is just the sort of script I was looking for.
Unfortunately it gives an error:

nawk: newline in string %s tli tc... at source line 44 in
function expand_entry
context is
printf "\t%s tli tcp /dev/tcp \\x000$5 >>>
<<< IP=""
nawk: next is illegal inside a function at source line 54 in function
expand_entry
nawk: syntax error at source line 55 in function expand_entry
missing }

The env in which I find myself has some ancient components that will
never be changed/updated. Maybe the version of nawk is too old? Why
does the script use nawk and not awk please?

-Andrew Marlow
.



Relevant Pages

  • Re: awk and simple for loop error
    ... >awk: ... >nawk: syntax error at source line 1 ... You need to ask yourself "What is the syntax for an AWK script?" ...
    (comp.unix.shell)
  • Re: tool for converting new $SYBASE/interfaces entries back to ancient hex format
    ... I found a script on the International Sybase Users Group's website: ... The only place it failed was when a given entry in the interfaces file ... -o specify output mode ... Check the "int.converted" file for any interfaces entries with missing ...
    (comp.databases.sybase)
  • Re: IP Address Problems
    ... (What other script triggers it?) ... unless I activate the network after I have logged in via the GUI. ... Apologies, it is "auto". ... > Try removing the appended line from your interfaces file, ...
    (Ubuntu)
  • Re: nawk: illegal field $( )
    ... The script is believed to behave well somewhere, ... It says 'nawk: illegal field $' when I execute the ...
    (comp.lang.awk)
  • Re: SED and shell scripting
    ... I need a scripting GURU to decipher this dilemma. ... > kind of conditional statement before replacing test. ... I did it with this nawk script: ...
    (comp.unix.shell)