I am new to unix and have a query. I have a text file which has a list of invoice numbers (00044779). There is some data (alphabetic) which follows this number. Than the second invoice number appears(00044898) and again some data follows.
I need a script which reads the whole file and when it hits any invoice number, it picks that and the data following it and puts it into a file. Similarly than when it encounters the second invoice, it picks the number and data following it and writes into another output file.
Can it be done by unix and if yes can you please guide me a bit?