du -s * | sort -n -r | sed 10q
Nushell.sh ls | where size > 10mb | sort-by modified
21–30 of 215 posts
Re: Nushell.sh ls | where size > 10mb | sort-by modified
#22This looks extremely interesting! Is anyone using it as a daily driver on Linux? How has your experience been?
Re: Nushell.sh ls | where size > 10mb | sort-by modified
#23Earlier 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.)
Re: Nushell.sh ls | where size > 10mb | sort-by modified
#24Re: Nushell.sh ls | where size > 10mb | sort-by modified
#25Re: Nushell.sh ls | where size > 10mb | sort-by modified
#26So, '>' isn't for redirection anymore. How does one do that? open foo.txt | append "world"| save --raw foo.txt Oh.
open foo.txt out> bar.txtRe: Nushell.sh ls | where size > 10mb | sort-by modified
#27So, '>' isn't for redirection anymore. How does one do that? open foo.txt | append "world"| save --raw foo.txt Oh.
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
etcBut 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
#28Earlier 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.