I'm working with an Android log file, In the logs we are pushing some data that may be used as a training set.
This is roughly how the relevant logs look
[Timestamp] : [Function name] : 1.1 1.2 1.3...
[Timestamp] : [Function name] : 2.1 2.2 2.3...
I want to trim this data to just the floating point numbers at the end, so that we can convert it to csv.
This is what I tried
Get-Content .\log.txt | Select-String "Function Name" | foreach {$_.substring(73)}
I'm getting an error that powershell doesn't have a method named substring