Quote:
Originally Posted by vikas027
hey,
This didnt made any file, not even a blank one.
Thanks.
|
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