When I want to choose a specific text from output within powershell I could use
select-string -Pattern "whatever:"
And it would print out the whatever column. But when I try the same thing on this output it instead prints out the row instead of the column.
So I do like this:
> /c0 show | select-string -Pattern "EID:Slt"
And instead of showing the column it shows this:
> EID:Slt DID State DG Size Intf Med SED PI SeSz Model
> Sp
The only way I could figure it out was to replace all the characters with empty space but it's kind of messy to do so, anyone else can help with a input?
How I try to make it display the output text: 32:1, 32:2, 32:3, [...]
Controller = 0 Status = Success Description = Show Drive Information Succeeded. Drive Information : ================= -------------------------------------------------------------------------- EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp -------------------------------------------------------------------------- 32:0 0 Onln 0 3.637 TB SATA HDD N N 512B ST4000NM0033-9ZM170 U 32:1 1 Onln 1 3.637 TB SATA HDD N N 512B ST4000NM0033-9ZM170 U 32:2 2 Onln 1 3.637 TB SATA HDD N N 512B ST4000NM0033-9ZM170 U 32:3 3 Onln 1 3.637 TB SATA HDD N N 512B ST4000NM0033-9ZM170 U 32:4 4 Onln 1 3.637 TB SATA HDD N N 512B ST4000NM0033-9ZM170 U 32:5 5 Onln 1 3.637 TB SATA HDD N N 512B ST4000NM0033-9ZM170 U 32:6 6 Onln 1 3.637 TB SATA HDD N N 512B ST4000NM0033-9ZM170 U 32:7 7 Onln 1 3.637 TB SATA HDD N N 512B ST4000NM0033-9ZM170 U --------------------------------------------------------------------------