Tag Archives: scripting

command line fun – testing for existence

I remember quite some time ago when I was developing a an application when the personal computer was actually fairly slow.  Of course I happened to pick a technology that worked just fine on a newer computer but it actually … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on command line fun – testing for existence

command line fun – transferring data with sftp

I must admit that I misunderstood the task when I first saw it.  The vendor had changed how they provide the data.  We will no longer be able to retrieve the data using ftp – the data should be picked … Continue reading

Posted in Command line, programming | Tagged , , | Comments Off on command line fun – transferring data with sftp

command line fun – juliane day number to gregorian

In a previous blog, I implemented a routine to convert a Gregorian date into a Juliane day number to allow simple math and comparisons on dates. This was pretty cool but it is less useful if you cannot convert back … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on command line fun – juliane day number to gregorian

command line fun – julian day number

I keep getting into a situation where I need to do some simple date calculations.  This is not a problem using a language like Java or when using a language that lets you add additional modules like Perl.  Unfortunately, some … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on command line fun – julian day number

command line – stupid date tricks

Just because you can do something doesn’t mean that you should do it.  I try and keep to that simple rule but from time to time it is fun to see what crazy things you can do in a simple … Continue reading

Posted in Command line | Tagged , | Comments Off on command line – stupid date tricks

command line junkie – speed test

Graphical operating systems really does make it easier to multi-task, especially for people who are not comfortable on the command line.  It is really easy to switch between your spreadsheet, web browsers and photo viewer programs in this type of … Continue reading

Posted in Command line, Setup From Scratch | Tagged , | Comments Off on command line junkie – speed test

command line fun – math

What is nice about shell scripting on Linux is that the language is just as complete as most of the compiled languages.  What elements makes up a pretty good computer language. variables assignments conditionals statements flow control expressions functions These … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on command line fun – math

command line fun – windows flow control

Windows batch files are not nearly as rich as some languages (perl or python) and certainly not as rich as the shell scripting. Not all of the familiar control structures exist but it is possible to create some as necessary … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on command line fun – windows flow control

command line fun – flow control

Shell scripting is like any other programming language as far as control statements go.  To be honest, all your favorite control statements can be whipped up using either if/then statement or a loop. The good news is that we don’t … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on command line fun – flow control

command line fun – logs and logging

Before writing this blog entry, I never considered the actual similarities between the Linux shell and the dos shell. I shouldn’t have been too surprised as the similarities have less to do with the operating systems than with the general … Continue reading

Posted in Command line | Tagged , , | Comments Off on command line fun – logs and logging