Hi,
I have a file that I want to split into multiple files based upon the content. I want to split the file wherever the line begins with "ISA" as the first 3 characters.
I thought I could use "csplit flat.txt '/^ISA/'", but it doesn't work. Am I missing something or is this the wrong command.
Heres a sample of what my data might look like:
---
ISA*A
ALINE1
ALINE2
ISA-B
BLINE1
BLINE2
ISA^C
CLINE1
---
I should get 3 files
Thanks for any help.
LEE
I have a file that I want to split into multiple files based upon the content. I want to split the file wherever the line begins with "ISA" as the first 3 characters.
I thought I could use "csplit flat.txt '/^ISA/'", but it doesn't work. Am I missing something or is this the wrong command.
Heres a sample of what my data might look like:
---
ISA*A
ALINE1
ALINE2
ISA-B
BLINE1
BLINE2
ISA^C
CLINE1
---
I should get 3 files
Thanks for any help.
LEE