Quote:
Originally Posted by
Franklin52
Use nawk or /usr/xpg4/bin/awk on Solaris.
Hi Franklin,
Still no luck
.
I used /usr/xpg4/bin/awk and the result is like following :
/usr/xpg4/bin/awk: syntax error Context is:
>>> 20100428193054 {of=sprintf("%02d.xml",++c) print <<<
And when using nawk the result is like following :
nawk: syntax error at source line 1
context is
{of=sprintf("%02d.xml",++c) >>> print <<< "mv " $0 " " dat of}
nawk: illegal statement at source line 1
---------- Post updated at 07:35 PM ---------- Previous update was at 07:33 PM ----------
Quote:
Originally Posted by
jim mcnamara
You may be using a shell the other posters are not expecting. Be sure there are no spaces between = and $( as in dat=$(
Do you know if you have bash, bourne, ksh, zsh....? which one?
Hi Jim,
There are no spaces between = and 4( in dat=$(.
Im sure of that.
but not sure for bahs, bourne or zsh.
But the other program in my unix box are having ext ksh or sh or prog.