As script is writting an output to the text file and the text file looks like below ,
**“XIV Devices”;
"Device Size (GB) Paths Vol Name Vol ID XIV ID XIV Host ";
“\.\PHYSICALD 120.5 8/8 usculcv01_SW_ 9736 7861175 usculcv01”; “RIVE1 cache
”\.\PHYSICALD 51.6 8/8 XIV07_usculcv 5546 7861175 usculcv01"; “RIVE2 01_index_cach
”\.\PHYSICALD 327.0 10/10 XIV12_USCULCV 11931 7825824 USCULCV01"; "RIVE3 01_DATA_01
“Non-XIV Devices”;
“Device Size (GB) Paths”;
"\.\PHYSICALDRIVE0 255.0 N/A ";
"\.\PHYSICALDRIVE4 32.2 8/8 ";
"\.\PHYSICALDRIVE5 53.7 8/8 ";
I have written an analysis to fetch Contents of line of .txt file between pattern1 & pattern2 like below ,
preceding texts of lasts “RIVE” of following texts of firsts “\” of lines whose(it contains “\” AND (following text of first " " of it contains “RIVE”)) of files whose((name of it ends with “.txt”) AND (exists line whose(it contains “\” AND (following text of first " " of it contains “RIVE”)) of it)) of folder “C:\temp”
I could get the output as below ,
.\PHYSICALD 120.5 8/8 usculcv01_SW_ 9736 7861175 usculcv01"; “
.\PHYSICALD 51.6 8/8 XIV07_usculcv 5546 7861175 usculcv01”; “
.\PHYSICALD 327.0 10/10 XIV12_USCULCV 11931 7825824 USCULCV01”; "
Is it possible to store this value in each column ?