Quote:
Originally Posted by vgersh99
Sorry 'bout that - some awk's increment pre-increment ops don't seem to work the way they supposed to.
Code:
awk '/SERVER/{if (n++) close(output); output= f n} n {print >> output }' f=/vikas/list /vikas/final
On Solaris - use 'nawk' or '/usr/xpg4/bin/awk'
|
hello friend,
this command is only making two files list1 & list2.
Thanks.