|
|
|
|
|
by fainpul
166 days ago
|
|
This example shows nicely how ugly text processing is: you have to use head and tail simply to trim out the first line of ls (the total). I think it doesn't even work correctly. ls lists files and directories and then picks the first 4 (it should only select files). And this also uses awk and jq, which are not just simple "one purpose" tools, but pretty much complete programming languages. jq is not even part of most standard installations, it has to be installed first. |
|
It's still ugly, so no competition for nushell still.
I'd be inclined to drop a little wrapper in my bin with a few lines of helpers (see my other comment) and do all Ruy if I wanted to get closer without having to change shells...