Advertisement
easternnl

Query Flex Engine process time with RegEx

Nov 10th, 2015
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # read flex engine log time
  2. $contents = gc C:\Users\erik\Downloads\FlexEngine.log
  3. [array]::Reverse($contents)
  4.  
  5. #$contents | where { $_ -ilike "*Starting Flex Engine*" } | select -First 1
  6. $null = ($contents | where { $_ -ilike "*done*" } | select -First 1) -match "\((.*?)\)"
  7.  
  8. #$line
  9. $Matches[1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement