Hi,
In a awk process, I am reading data from a file where some of the data lines contain text bracketed by parenthesis like the following example:
...SysKonnect PCI FDDI Adapter (48110040)
I set up a variable:
Adapter_Desc = substr($0,30,length($0))
And then try to echo the data via a system call:
system("echo Adapters........: "$1 Adapter_Fill " - " Adapter_Desc)
The system/echo generates errors for each of the lines with the "()" text format:
sh: 0403-057 Syntax error at line 1 : `(' is not expected.
If I only extract 5 bytes starting at 30, it works fine.
How do I code to ignore the "(" and ""?
Regards,
gawker
In a awk process, I am reading data from a file where some of the data lines contain text bracketed by parenthesis like the following example:
...SysKonnect PCI FDDI Adapter (48110040)
I set up a variable:
Adapter_Desc = substr($0,30,length($0))
And then try to echo the data via a system call:
system("echo Adapters........: "$1 Adapter_Fill " - " Adapter_Desc)
The system/echo generates errors for each of the lines with the "()" text format:
sh: 0403-057 Syntax error at line 1 : `(' is not expected.
If I only extract 5 bytes starting at 30, it works fine.
How do I code to ignore the "(" and ""?
Regards,
gawker