![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Need full line of text from select-string Hi. I need to know how to output the entire text of a MatchInfo object resulting from the select-string command. When I run the following it displays the correct records in the file inputfile.txt but the lines are truncated and an ellipsis is appended to each line. Command: select-string -path inputfile.txt -pattern "Microsoft" -simplematch : select-object Line Result: IAD+206:H075691:4::TKIAD:4:2+20070127:153129323'GEI+S:KK+GK:69254'MGA+S:SSSS+1+1+20040414'IAB+S:SSSSSS+5+1'IAC+S:SSS... Some of the lines in the file are very long. How do I get "select-object Line" to output the entire line of text? Thanks in advance. |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Need full line of text from select-string Pipe the MatchInfo to ForEach-Object instead of Select-Object: select-string ... | % {$_.line} -- Kiron |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Need full line of text from select-string Thanks alot. I just implemented a foreach solution prior to your response. "Kiron" wrote: Quote: > Pipe the MatchInfo to ForEach-Object instead of Select-Object: > > select-string ... | % {$_.line} > > -- > Kiron > |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Need full line of text from select-string Glad to help! Like that synchronicity too... -- Kiron |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| wscript.echo only a new line / embed a "CR" in a text string ? | VB Script | |||
| Select Files - Disable or Enable Full Row Select | Tutorials | |||
| problems with $var | select-string -pattern $string -q | PowerShell | |||
| Search for string in CSV and delete line if string found in line | PowerShell | |||
| Select-String problem with not English ASCII text | PowerShell | |||