this post was submitted on 24 Mar 2025
31 points (100.0% liked)
Linux Questions
1550 readers
1 users here now
Linux questions Rules (in addition of the Lemmy.zip rules)
- stay on topic
- be nice (no name calling)
- do not post long blocks of text such as logs
- do not delete your posts
- only post questions (no information posts)
Tips for giving and receiving help
- be as clear and specific
- say thank you if a solution works
- verify your solutions before posting them as facts.
Any rule violations will result in disciplinary actions
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It depends what you're intending to do, but PowerShell objects are really powerful, especially in terms fo searching and sorting. Best example I can give as a starting point, would be feeding in a log file and making each line a PowerShell object. Then use blank characters to make each part of the line a property. Does each line start with a date and time? Cool, now now you can do time based queries, specifying dates, days or time ranges without a bunch of messy regular expressions.
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_objects?view=powershell-7.5