python - What scripting language should I learn for file/text manipulation tasks? -


I am trying to design a script for automation of a very difficult configuration process I was doing by hand. Most different ClearCase sequences include copy files of the configuration process, their content is edited in the predefined way, and they are inserted into a new local tree of directories.

It also includes some proprietary and MS SQL Server businesses, but it is not very difficult to do it manually. I am more worried about endless copying and pasting which is suffering from human error. The configuration process is mostly done in Windows XP, but there is also a good script running Red Hat Linux.

I just know C ++ and Java, but I was thinking that some python manipulate all the files; It looks like a very high level of work so that a scripting language is appropriate.

Am I on the right track? Do I particularly want to see common mistakes?

[edit: In this initial phase I have no special technical questions (though I will not have any doubt when I am Nitty-gritty), okay, except: Python is one of the language for this task I have never used it before considering it (though I am quite familiar with C ++ and Java)? Or should I just work in one of them?]

  1. make the script yourself Imagine how long it will take.
  2. Sextuple it (edit: finally, my "Quintuple" bug was caught)

Why?

  • The first 100% increase is because there is no such thing as 100% productivity.
  • The second 100%, because you are learning a new language.
  • The third 100%, because you are not considering leading issues that automation / Strong> unveil
  • Fourth, 100% because you have to check and document your code.
  • During the first year, the fifth 100% operation for support, maintenance and bug fixes.

So, if you think that this is going to take you coding up to a week, then a week would be a more reasonable estimate.

When making your case, make sure to do cost-benefit analysis, if it saves someone in your pay grade for 20 hours a week, then pay-off takes two weeks.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -