59
The BEST Shell You’re Not Using - Fish - YouTube
(youtube.com)
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
Probably not, but to give an easy example:
Here,
lsdoesn't just return a string representing directory content as text, but a table where each file is an entry with attributes that have their own data type (e.g.sizeisFilesizewhilemodifiedisDatetime). That's why I'm able to filter based on one of them; that part isn't part ofls, but of the shell itself. In a classic shell, this filtering would need to be handled in the originating binary in its own specific way, or you'd need to parse its output, transform it using tools likesedandawketc. This here is a special case becauselsis built into the shell; for non-builtin commands, if they offer it, you can have them output structured data as json or something else and read it into nu, likeIt's kind of cool, but I don't need it that often either, so I just play around with it when I feel like it.
Interesting, thank you very much for taking the time to explain 😊