News for hackers. Stuff that matters.
Re:Linux and Powershell by Toniglandyl on Wednesday January 20, 2021 @05:24PM (#25852765)
Well... if it's about complex scripting, you have Python or Perl whose are standard, well integrated, lightweight, powerfull and preinstalled on Linux.

If it's for a day to day usage as a shell, bash / fish / zsh... are more concise and faster.

The example given on the article :

# Get all file modified in the last 3 days

Get-ChildItem -Path path -Recurse | Where-Object {

  $_.LastWriteTime -gt (Get-Date).AddDays(-3) 
}

Is just:

find path -mtime 3

in bash ...

The object thing is nice, but using strings as output is universal.

There are no comments on this comment yet.