Miguelarod
MIS
I have following data in a file. I want to insert the date before each line after it. So that it look like:
Dec 11 00:00:00^0^0^208037^670^0^0^0^8^22^0^188^623^573^13^9^76^2
How can I do this? I was trying to use sed but haven't found a way that works yet. Please help.
Dec 11 00:00:00
^0^0^208037^670^0^0^0^8^22^0^188^623^573^13^9^76^2
^0^1^207940^234^0^0^0^172^846^0^431^7681^465^11^8^79^2
^0^1^207940^217^0^0^0^0^0^0^352^808^153^1^2^78^19
^0^1^207940^700^0^0^0^96^298^0^329^9157^314^8^6^86^1
^0^1^207940^700^0^0^0^0^0^0^273^1346^91^1^1^98^0
^0^1^207940^698^0^0^0^0^0^0^362^4667^370^7^2^91^0
^0^1^207940^698^0^0^0^0^0^0^274^935^107^1^1^99^0
^0^1^207940^698^0^0^0^0^0^0^330^3822^284^6^1^93^0
^0^1^207940^696^0^0^0^0^0^0^275^2277^106^2^1^96^0
^0^1^207940^696^0^0^0^0^0^0^323^3442^241^5^1^94^0
^0^1^207940^694^0^0^0^0^0^0^280^1254^168^3^1^97^0
^0^1^207945^689^0^0^0^0^0^0^292^1259^145^1^1^98^0
^0^1^207940^694^0^0^0^0^0^0^314^3998^281^6^2^92^0
Dec 11 00:30:00
^0^0^208281^336^0^0^0^8^22^0^188^624^573^13^9^76^2
^0^1^208646^144^0^0^0^310^1206^0^331^5888^356^8^6^82^3
^0^1^208646^144^0^0^0^0^0^0^302^1474^165^2^1^98^0
^0^1^208676^125^0^0^0^1475^5001^0^718^4666^946^9^12^53^26
^0^2^208676^123^0^0^0^3213^10401^0^993^1280^1100^3^19^39^39
Dec 11 00:00:00^0^0^208037^670^0^0^0^8^22^0^188^623^573^13^9^76^2
How can I do this? I was trying to use sed but haven't found a way that works yet. Please help.
Dec 11 00:00:00
^0^0^208037^670^0^0^0^8^22^0^188^623^573^13^9^76^2
^0^1^207940^234^0^0^0^172^846^0^431^7681^465^11^8^79^2
^0^1^207940^217^0^0^0^0^0^0^352^808^153^1^2^78^19
^0^1^207940^700^0^0^0^96^298^0^329^9157^314^8^6^86^1
^0^1^207940^700^0^0^0^0^0^0^273^1346^91^1^1^98^0
^0^1^207940^698^0^0^0^0^0^0^362^4667^370^7^2^91^0
^0^1^207940^698^0^0^0^0^0^0^274^935^107^1^1^99^0
^0^1^207940^698^0^0^0^0^0^0^330^3822^284^6^1^93^0
^0^1^207940^696^0^0^0^0^0^0^275^2277^106^2^1^96^0
^0^1^207940^696^0^0^0^0^0^0^323^3442^241^5^1^94^0
^0^1^207940^694^0^0^0^0^0^0^280^1254^168^3^1^97^0
^0^1^207945^689^0^0^0^0^0^0^292^1259^145^1^1^98^0
^0^1^207940^694^0^0^0^0^0^0^314^3998^281^6^2^92^0
Dec 11 00:30:00
^0^0^208281^336^0^0^0^8^22^0^188^624^573^13^9^76^2
^0^1^208646^144^0^0^0^310^1206^0^331^5888^356^8^6^82^3
^0^1^208646^144^0^0^0^0^0^0^302^1474^165^2^1^98^0
^0^1^208676^125^0^0^0^1475^5001^0^718^4666^946^9^12^53^26
^0^2^208676^123^0^0^0^3213^10401^0^993^1280^1100^3^19^39^39