No announcements
Found 571075 threads
-
0 Votes
Select-String / Substrings
) { $filename = $file.Name $fullfilename = $file.FullName $statestring = (select-string -InputObject $file -Pattern ...Answered | 6 Replies | 430 Views | Created by BAWrites - Thursday, May 17, 2018 7:00 PM | Last reply by jrv - Sunday, May 20, 2018 3:59 PM -
0 Votes
selecting a substring
Hello, I am trying to select multiple substrings from a string : Hello i have a couple of things to say "two ...Answered | 1 Replies | 382 Views | Created by oleolehoohoo - Thursday, December 29, 2016 3:28 PM | Last reply by oleolehoohoo - Thursday, December 29, 2016 4:04 PM -
0 Votes
Sub-string issue on Capture specific dataset
The parameters to substrings are string, start ix, length. This is a little different from other environments where the last parameter is stop ix. If I understand ...Answered | 2 Replies | 653 Views | Created by Maheshma - Sunday, March 1, 2020 9:59 AM | Last reply by Maheshma - Sunday, March 1, 2020 1:59 PM -
0 Votes
SELECT Substrings of different lengths
link tables): SELECT 20_Columns FROM 7_Tables WHERE LEFT(Table1.Column, 2) = Table2.Column BUT! As per previous, the ...Answered | 9 Replies | 3698 Views | Created by iCheck - Tuesday, February 3, 2009 6:58 PM | Last reply by Adam Haines - Tuesday, February 3, 2009 10:58 PM -
0 Votes
Powershell Extracting substrings of a string
I should also note that you need to add the source. There can be multiple sources defining the same ID. They can have different string array ...Unanswered | 9 Replies | 1753 Views | Created by MarchingOnTogether - Friday, February 21, 2014 1:11 AM | Last reply by jrv - Friday, February 21, 2014 2:35 PM -
0 Votes
Getting two Substrings from a string
So something like this ? with cteFormats as ( Select '09/Mar/2010<br><hr>08/Mar/2010<br><hr>01/Mar/2010' as Format union ...Answered | 6 Replies | 3820 Views | Created by Shaikh Sadaf - Wednesday, March 10, 2010 8:05 AM | Last reply by Dave Ballantyne - Wednesday, March 10, 2010 8:41 AM -
0 Votes
Select String
Get-Help Select-String -Parameter -Quiet You can expect Boolean output from Select-String only if you use -Quiet ...Proposed | 7 Replies | 587 Views | Created by Futur152 - Thursday, March 8, 2018 4:46 PM | Last reply by jrv - Friday, March 9, 2018 3:59 AM -
5 Votes
Select-string
I took my dog to the vet The vet fixed my dog My dog likes to visit veterans dog dog The vet is great He continued with dogged determination PS ...Answered | 11 Replies | 3440 Views | Created by inventa00 - Tuesday, January 10, 2012 11:16 AM | Last reply by Bigteddy - Tuesday, January 10, 2012 1:56 PM -
0 Votes
Query help for where condition
confusing. Judging from the query, the column data seems to be a string which consists of fixed length date or numberic format substrings, so you are verifying each ...Answered | 2 Replies | 520 Views | Created by BI_Support - Wednesday, February 25, 2015 11:30 AM | Last reply by Eric__Zhang - Thursday, February 26, 2015 6:46 AM -
0 Votes
Regex Powershell select-string
-host $replica #$contents | Select-String -Pattern $replica -Context 0,2 } $contents variable is loaded from a file using ...Answered | 2 Replies | 3102 Views | Created by precept33 - Monday, November 4, 2013 6:23 PM | Last reply by precept33 - Monday, November 4, 2013 7:52 PM -
0 Votes
Extracting Substrings
Try: selectUnanswered | 2 Replies | 4789 Views | Created by donnie100 - Wednesday, August 13, 2008 4:45 PM | Last reply by Hunchback - Wednesday, August 13, 2008 5:54 PM -
0 Votes
Select-string -patttern
Select-string will do a pattern match using regex, wildcards, or literal string matching. The default is regex. Since you're wanting to do a literal ...Answered | 2 Replies | 1106 Views | Created by cwortiz - Tuesday, March 5, 2013 6:09 PM | Last reply by cwortiz - Tuesday, March 5, 2013 8:10 PM -
0 Votes
Select-string on the result of select-string?
Try this, then run your next select-string on $info: $info = $hba | select-string -pattern "HBA General ...Answered | 2 Replies | 4353 Views | Created by arsbadmojo - Friday, July 1, 2011 3:03 PM | Last reply by Kazun - Friday, July 1, 2011 3:21 PM -
0 Votes
How to select rows that contain substrings from another table
). In which case you would still use a similar construct to Konstantin's. SELECT P.* FROM ProductList P INNER JOINUnanswered | 2 Replies | 10110 Views | Created by Mark Welch - Friday, March 23, 2007 2:40 PM | Last reply by Konstantin Kosinsky - Friday, March 23, 2007 3:04 PM -
2 Votes
Select-String output help
You can use the -List switch to just return the first match. Also select-string was designed to work with files directly, so you don't need to do the get-content ...Answered | 4 Replies | 1191 Views | Created by Heckter - Tuesday, June 3, 2014 11:27 AM | Last reply by Heckter - Tuesday, June 3, 2014 2:03 PM -
0 Votes
Select-String group
gc C:\temp\testfileStatement Date: 04/12/15 PS:> gc C:\temp\testfile | Select-String -Pattern "Answered | 1 Replies | 892 Views | Created by Freddy91761_1 - Wednesday, April 15, 2015 5:22 PM | Last reply by kaya_f - Thursday, April 16, 2015 1:31 AM -
0 Votes
select-string boolean
PS > [bool](Get-ChildItem "Cert:\LocalMachine\ca" | Select-String -pattern "CN=VirtualTHEO123" -quiet) False Notice thaat this is what ...Answered | 4 Replies | 11838 Views | Created by tmacris - Wednesday, September 7, 2016 2:33 PM | Last reply by tmacris - Wednesday, September 7, 2016 4:55 PM -
2 Votes
Select-String Pattern
"And" logic is trickier, since Select-String parses a file line-by-line. Even if you were doing a regex match against the file's entire contents, your pattern would ...Answered | 5 Replies | 4166 Views | Created by wuwu - Friday, July 12, 2013 12:29 PM | Last reply by David Wyatt - Friday, July 12, 2013 1:09 PM -
0 Votes
select-string extremely slow
that number in the second array with select-string. The second array is sorted bij lastwritetime and can contain over 1000 elements. My question is: The script ...Answered | 4 Replies | 704 Views | Created by voyager1957 - Friday, May 17, 2019 1:49 PM | Last reply by LeeSeenLi - Monday, June 3, 2019 7:43 AM -
0 Votes
Select-String -Pattern
;' [Regex]::Matches($str,$regex) | foreach {$_.groups[1].value} Edit - if you really want to use Select-String: $str | ...Answered | 3 Replies | 2349 Views | Created by -Edatha- - Tuesday, January 29, 2013 11:46 AM | Last reply by mjolinor - Tuesday, January 29, 2013 4:34 PM - Items 1 to 20 of 571075 Next ›
No announcements