'nushell: list all files recursively [closed]
How can I list files recursively with the nu shell?
More specifically: All files, folders and everything else in a specified folder and every inner folder, recursively.
- I tried
ls **, but that does not work. - I googled, found
ls **/**.rson Coming from Bash and triedls **/*. That seemed to work, but I had to learn the hard way that it lists only some files, not all. I don't know why. But I found an example wherels **/* | where name =~ 'xxx'found less thanls **/*xxx*. (I thought about including my example here, to show what is listed and what not. But the folder structure is too huge.) - I cannot use
ls **/*xxx*as I do not want to filter by name every time. Sometimes I need to filter only by other columns.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
