Archive for unix

You are browsing the archives of unix.

Is the Windows registry a good idea?

Compared to Unix config files, and even to Windows 3.1 ‘ini’ files is the windows registry a good idea? This was the question that presented itself in my mind this weekend. First, what is the windows registry? Windows registry is a Hierarchical database that stores configuration settings for Windows, and for the software installed on [...]

Moving multiple files

One common requirement on *nix systems is to rename (or move-and-rename) more than one file, matching a wildcard. However, if you try to do this: mv ACK*.xml /code/xml/ACK*.xml.done it wont work for more than one file. By the way, this is one of those odd places where Windows command line works better! How to work [...]

Deleting zero byte files

In the past I have shown ways to run Linux scripts on windows based system. I have also talked about one use of the find command, in conjunction with grep command to search for files having a given text content (say a word) in multiple folders. Today I will show you another use of the [...]

Automate encryption with GPG

This blogpost requires some familiarity with GPG. Today I want to share the scripts for running GPG in the batch (unattended) mode. You can have a password on the keys if you want, but since this is the automated mode, you may want to use keys without a password. Irrespective of whether or not you [...]

Searching files within multiple folders

How to search file contents for a specific phrase using grep within multiple folders. Shows ways for both Linux and Windows.

Running Linux scripts on Windows

How to run Linux scripts on Windows.