Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Split fields from fields in a text line

Hi,

I have the following Problem.

Normally, the field names an data in a file look like that:

ID:          1

Date:      20.04.2018

Item1:     Content1

Item2:     Content2

ID:          2

Date:      21.04.2018

Item1:     Content1

Item2:     Content2

...

But in many cases it looks like that:

ID:          1

Date:      20.04.2018

Item1:     Content1     Item2:     Content2

ID:          2

Date:      21.04.2018

Item1:     Content3     Item2:     Content4

The result should be:

IDDateItem1Item2
120.04.2018Content1Content2
221.04.2018Content3Content4

Does anyone has an idea, how to solve the problem?

Best regards

Michael

16 Replies
sunny_talwar

See all these are work arounds as there is no easy way to pull the data... now if I give you a solution which works for this, it may break something else. To help it make it easy, would you be able to share a sample which is very close to your real scenario... otherwise we will just be doing this over and over and over again....

Anonymous
Not applicable
Author

Hi Sunny, !

sorry, you're completly right. I've attached a file created from the original data. I've only "neutralized" the content.

Michael

sasiparupudi1
Master III
Master III

Your test file contains headers and tables.. which section you want us to help you transform.?

Please provide a clean sample.

Anonymous
Not applicable
Author

The file contains only 1 table. And what do you mean by headers. The data in the file have the structure already discussed with Sunny Talwar.

sasiparupudi1
Master III
Master III

The file contains balnk line and  tables

          

[°][°C]
1289312:19:5528,1921,999
2289412:20:26------
Mittelwert289212:20:27--
GxP Information (für 589 nm):
Letzte Quartz Justierung:          23.08.2017 11:26:56 von Service
Letzter Check (Quarzcheck): 23.08.2017 10:23:20 von Service - Bestanden
Elektronische Unterschrift der Probe:
Autor:           Nicht unterzeichnet Prüfer:          Nicht unterzeichnet Freigeber:    Nicht unterzeichnet
Mittwoch, 6. Dezember 2017 | 18:18:35   
(Unterschrift)
Benutzer:                                 Remote
Nominale Messzellenlänge: 100,00 mm
Messergebnis:
TeilmessungsnummerEindeutige
Proben-ID
ZeitOpt.
Drehung
(längen-korrigiert)
MesszellentemperaturReale
Messzellenlänge
(TC)
[°][°C][mm]
1289610:21:0066,3642,0091,000,082
2289710:21:2966,3652,0021,000,081
3289810:21:5766,3661,9971,000,081
Mittelwert289510:21:5866,3652,0031,000,081
Std.-Abw. 8249247
GxP Information (für 589 nm):
Letzte Quartz Justierung:          23.08.2017 11:24:47 von Service
Letzter Check (Quarzcheck): 31.08.2017 10:04:12 von phvle0 - Bestanden
Elektronische Unterschrift der Probe:
Autor:           Nicht unterzeichnet Prüfer:          Nicht unterzeichnet Freigeber:    Nicht unterzeichnet
Mittwoch, 6. Dezember 2017 | 18:18:35   
(Unterschrift)
Anonymous
Not applicable
Author

Please remove the table Information from your post. That seems to be the wrong Information.

sunny_talwar

Don't see anything attached