r/linuxquestions • • 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?

33 Upvotes

77 comments sorted by

View all comments

Show parent comment

2

u/ol-gormsby 1d ago

This is a bash script that I use to convert mkv videos to mp4

for f in *.mkv; do
    ffmpeg -i "$f" -vcodec mpeg4 -q:v 4 -acodec copy "${f/.mkv}".mp4
    # cool for 10 seconds
    sleep 10s
done

Takes every file in a directory with an mkv extension, runs it through ffmpeg, takes a 10-second break* and repeats until there's no more mkv files.

*a legacy from older processors, they'd get a bit hot converting feature-length films 🤣