I use shell scripts for the work I often do at work. I think that making it a shell script has the following advantages.
A shell script is fine, but I wanted to be able to write the script more efficiently and debug the script itself, but my friend recommended Python, so I studied it.
I think Python is similar to Swift. It also has a wealth of language features and libraries. I think that what is similar to Swift is that Swift imitated it. If you know Swift, you'll soon be able to use Python. And vice versa, if you know Python, you'll soon be able to use Swift. It's easy to make a mistake when the reserved words are different even though the functions are similar.
The tasks you want to automate are:
To do these in Python, it seems like you can use the "os", "json", "xml.dom", and "subprocess" modules. Python has a lot of modules, so I think most things can be written using the functions of the modules provided.
What used to be hard-coded as a shell script is a language that makes it easier to use by allowing it to be specified in configuration files and command line options for command line tools.
Recommended Posts