I am trying to gather a specific number from a text file, then export that number to .csv.
For example, I have a text file called: log.txt under C:\data. When I open the file, It contents the words " UserData Size: 1014.288086 MB". I only need the number to shows in the CSV file, which is 1014.288086 in this case.
I wish someone can guide me the PowerShell scripts.
PS. I have attached an example Log text file so you can see the number I am looking to export.
Thanks.