Welcome › Forums › General PowerShell Q&A › Read file with name=value
- This topic has 1 reply, 2 voices, and was last updated 10 months, 1 week ago by
Participant.
Viewing 1 reply thread
-
AuthorPosts
-
-
March 17, 2020 at 8:34 pm #210885
Hello,
I have log file with contents like below:
PowerShell12345date=2020-03-17 time=20:56:17 logid=”0000000013″ type=”traffic” subtype=”forward” ……..date=2020-03-17 time=20:56:27 logid=”0000000013″ type=”traffic” subtype=”forward” ……..<div><div>date=2020-03-17 time=20:56:37 logid=”0000000013″ type=”traffic” subtype=”forward” ……..</div></div>I tried read it with ConvertFrom-CSV but have strange results…
Does someone have and idea how to read such content and create from it object with named parameters like “date”, “time”, “logid”, etc.
Best Regards
Daniel
-
This topic was modified 10 months, 1 week ago by
kolaborek08.
-
This topic was modified 10 months, 1 week ago by
kolaborek08.
-
This topic was modified 10 months, 1 week ago by
kolaborek08.
-
This topic was modified 10 months, 1 week ago by
-
March 17, 2020 at 8:41 pm #210897
When you post code or sample data or console output you should format it as code using the code tags “PRE” … please read the instructions: Read Me Before Posting! You’ll be Glad You Did!
For your task you should take a little time and watch this video. It will teach you everything you need:
-
-
AuthorPosts
Viewing 1 reply thread
- The topic ‘Read file with name=value’ is closed to new replies.