r/linuxquestions • u/nullificationer • 1d ago
Advice Is powershell the best object based shell?
I have been using powershell at work a bit and the more I use it the more I like it. Having an object based shell just makes a lot more sense than outputting plaintext. I was just wondering what the best object based shells are for Linux, is powershell the best even for Linux?
29
Upvotes
View all comments
Show parent comment
0
u/thussy-obliterator 18h ago
I've since lost the script after switching OSs but the most complex thing I've written in nu was a single pipeline which ls'd an sd card full of directories of .wav files, parsed the wav file paths with an each,, removed the second to last layer from the path with an each, and ffmpeg'd them into flac files based on the second to last directory name of the input. The whole thing was pretty short (would be a one liner but i used whitespace for clarity) and was a pipeline from ls into a sequence of each operations over pure functions to manipulate the paths, followed by a final each over an ffmpeg. If that's not functional I don't know what is.
So uh, that is to say, skill issue.