29
Is there any reason to use Powershell on Linux?
(lemmy.world)
Linux questions Rules (in addition of the Lemmy.zip rules)
Tips for giving and receiving help
Any rule violations will result in disciplinary actions
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