Automatic editing

For changing file contents, we often use editors. But sometimes it is a good idea to do this from a script and do a change to many files at once or do the same kind of changes often. The classic approach to this is using sed, which is made exactly for this purpose. But most …

Share Button

Git for Linux System Engineering

Now that git has become the standard version control software, which is used by software developers. Now for system engineering and system administration purposes it used to be an approach to just login and do something and remember it or even note it somewhere. Some people tried to just use RCS or SCCS on the …

Share Button

How to rename files according to a pattern

We often encounter situations, where a large number of files should be copied or renamed or moved or something like that. This can be done on the Linux command line, but it should be possible in almost the same way on the Unix/Linux/Cygwin-command line of newer MS-Windows or MacOS-X. Now people routinely do that and …

Share Button

Perl Scripts for editing

Even though we do have IDEs with quite powerful refactoring mechanisms for many languages, it is still sometimes useful, to have another automated editing mechanism. Why would that be the case? Some examples: In some cases there was an SQL script to create the database tables, which had been written first. From that classes and …

Share Button