Live data from Hacker News

Nushell.sh ls | where size > 10mb | sort-by modified

nushell.sh

21–30 of 215 posts

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#22

This looks extremely interesting! Is anyone using it as a daily driver on Linux? How has your experience been?

I second this question. I was using FISH for quite a while and really liking it, but there was always something that it was incompatible with and had to eventually give it up.

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#23

Earlier quoted context omitted.

- Better errors - Native support for JSON, etc (no more ConvertFrom-* ConvertTo-*) - Less verbose - Different visualisation

PowerShell isn’t that verbose, compared to NuShell. The ls example would be (with standard PowerShell aliases): gci | where { $_.Length -gt (10 * 1024 * 1024) } | sort LastWriteTime -gt might seem weird, but it’s better than overloading >. (Also, I like the fact that PowerShell is built into Windows and has a large corporation behind it.)

Sorry but that looks terrible.

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#27

So, '>' isn't for redirection anymore. How does one do that? open foo.txt | append "world"| save --raw foo.txt Oh.

Historically we would discourage shell users from

    cat somefile.txt | whatever
and instead tell them to use either

    whatever 
or, if the command accepts input file names as arguments then use those like

    whatever somefile.txt
or

    whatever -i somefile.txt
etc

But perhaps in fish, “useless use of cat” is not so useless and would be recommended?

(I mean aside from the fact that they seem to recommend their “open” command, and so they probably prefer their own “open” over “cat”.)

Re: Nushell.sh ls | where size > 10mb | sort-by modified

#28
post #23

Earlier quoted context omitted.

PowerShell isn’t that verbose, compared to NuShell. The ls example would be (with standard PowerShell aliases): gci | where { $_.Length -gt (10 * 1024 * 1024) } | sort LastWriteTime -gt might seem weird, but it’s better than overloading >. (Also, I like the fact that PowerShell is built into Windows and has a large corporation behind it.)

Sorry but that looks terrible.

What about it looks terrible? The braces are necessary, because this is a lambda.
Post reply on HN