Issue is, that you assigned the complete "cat FileONE" to your var outside of the loop.
This is why i wanted to use these foreach with two lists. But other working solutions are also welcome.
^^ i see no COMMAND and neither COMMAND_OPTION ^^
Tried with one print and multiple
Tried with one printf and usage of both %s
with double quotes and single quotes - with brakets and w/o...
don't know why I do not see my wanted printout.
i want to get:
Thanks
---------- Post updated at 03:02 PM ---------- Previous update was at 02:44 PM ----------
Can you please explain me if/why AWK on SunOS is different to the AWK on linux.
Is it just outdated on SunOS? Would be nice to understand what the issue is.
Strange is, that AWK also worked but gave another output.
THANKS, nawk works on SunOS and provides exactly the output which Linux shows.
---------- Post updated at 04:20 PM ---------- Previous update was at 04:18 PM ----------
How can i fiure out the AWK version for SunOS? I get no response on SunOS.
Yeah processing the output with cat was my "workaround".
Thanks for the additional possibilitys!
====
how to use system in my case? I mean with array element inside.
system("command a[k] -command_option b[k]");
tried single and double quotes and combination of "'xxx'" but prob. the system is then not correct working. Do I need to work with $ now?
Thanks
====
One more question, how can i use these arguments used while skript is called.
I tried with ARGV but this didn't work (finally got no error but also no output)
Please look at read code.
The bgein and at the end the variable usage is not clear/working.
tried also quotes and w/o $, but didn't provide the wanted solution.
As you probably understood, i try to start the script with 2 arguments => the two files which should be used.