r/linuxadmin • • May 22 '26

A high-level language for scripting?

I usually use Python or C# for writing scripts, what are the disadvantages of this compared to use Windows Batch, PowerShell, Bash?

16 Upvotes

61 comments sorted by

View all comments

Show parent comment

1

u/FarToe1 May 22 '26

Objectively better? Not by all margins.

If you're a sysadmin who needs to work on hundreds or thousands of linux machines of various distributions, and where bash won't cut it - perl is the only sane choice.

Nothing else is installed by default everywhere already. Nothing else will continue to work years or decades into the future with no upkeep. (I have perl scripts I wrote back in the 90s that are still running away happily on modern OSs).

Sure, for many choices perl is wrong. But in my world, if you don't do perl, you're doing things the hard way.

It's got a bad reputation for difficulty, so people avoid it, which probably confirms your 30+ claim. It's totally unwarranted though.