top | item 41539912

(no title)

chrystalkey | 1 year ago

I use different languages for different purposes. Although bash euns everywhere, its a walking footgun and thus I only use it for small sub 100 line no or one option Scripts. the rest goes to one of Python, which nowadays runs almost everywhere, Julia or a compiled language for the larger stuff

discuss

order

necheffa|1 year ago

If you just want to move some files around and do basic text substitution, turning to Python or another other "full fledged programming language" is a mistake. There is so much boiler plate involved just to do something simple like rename a file.

maccard|1 year ago

You mean

    import os
    os.rename(“src.txt”, “dest.txt”)

?