I'm trying to split one file into numerous other files and can't figure out how to do this. I don't know if sed or awk can do this...
Basically I'm trying to split a list like the output of
eg 'abcd' is the delimiter...
abcd
1234
xdfg223
abcd
999999
888888
77777
66666
abcd
tyuiop
This should create three files.
Any suggestions would be appreciated.
Basically I'm trying to split a list like the output of
pciconf -lv
into separate files via specific delimiter, but the numer of lines between the delimiters is variable.eg 'abcd' is the delimiter...
abcd
1234
xdfg223
abcd
999999
888888
77777
66666
abcd
tyuiop
This should create three files.
Any suggestions would be appreciated.