I have a file in the following format
a pool
SSC003 03 Available
SSC004 07 Available
b pool
SSC006 89 Available
SSC007 20 Available
---
---
---
---
c pool
SSC009 22 Available
---
---
---
What I need to do is chop out the different pools into seperate files, how would I do this with awk?
file1 =
a pool
SSC003 03 Available
SSC004 07 Available
b pool
SSC006 89 Available
SSC007 20 Available
---
---
---
---
file2 =
You get the idea I'm sure
regards Mike --
| Mike Nixon
| Unix Admin
| ----------------------------
a pool
SSC003 03 Available
SSC004 07 Available
b pool
SSC006 89 Available
SSC007 20 Available
---
---
---
---
c pool
SSC009 22 Available
---
---
---
What I need to do is chop out the different pools into seperate files, how would I do this with awk?
file1 =
a pool
SSC003 03 Available
SSC004 07 Available
b pool
SSC006 89 Available
SSC007 20 Available
---
---
---
---
file2 =
You get the idea I'm sure
regards Mike --
| Mike Nixon
| Unix Admin
| ----------------------------