Skip to main content

Back to basics, back to bash

It had been quite some time since I wrote a bash script, besides the usual one liners I use for getting around my Linux boxes. And it seems to me that unix shell scripting and especially bash scripting is a perfect basis for other scripting languages like perl, python, php and even javascript or xslt. Luckily, on the internet there are some wonderful resources to help learn or get back up to speed with bash scripting. So I figured I'd share some of these.

First of all there is the Linux Documentation Project where you can find many guides and howto's on all things related to Linux and so also bash scripting.
Here are some direct links to two guides:
Bash Guide for Beginners
Great for getting started and also for using as a reference by using the glossary.
Advanced Bash-Scripting Guide
Same as the above only more recently updated. You can use the index for reference and there is a list of examples, which I always find helpful. I definitely want to go through this guide. It's good stuff.

But there is more good stuff in the form of video, which I always find very accessible and engaging. Here are two interesting youtube playlists:

Mr Tutorize: unix shell scripting tutorial
Nice structured unix shell scripting course

Metalx1000: BASH Basics
Basic bash stuff

Metalx1000: BASH
200 more videos about the many fun things you can do with bash scripting

Below is just a short snippet of bash shell script code, that shows how I intend to be using bash to pull data from Yahoo Finance so I can run trading strategies on that data.
As soon as I have a scripted strategy working I will post it. No guaranties, however, as I got many other projects going on :-)

Popular posts from this blog

Invest like a trader

Here is my book: "Invest like a trader". I finally decided to create this book based on my blog and experience investing, trading and coding. It is an introduction to my view on investing. For the next few days you can get a free copy on Amazon:

This book is for you if you are an investor looking to learn a more trading-like approach to investing. Buy and hold investing has become buy and pray investing, with countless sleepless nights. A more trading-like approach to investing puts you back into control of your investments and it can be a lot of fun. After reading this book you should be more able to build and grow your investment account consistently.

Link to the e-book:
Let me know what you think after reading the book. You can contact me via email or on social media. Even better, you can leave a review on Amazon.

Why I am a trader and investor and why you might wanna be one too

I am a coder by day and trader by night! Coding is my day job. I am fully aware that only having a job will not allow me to provide for my family and myself consistently in the long run. This is because most of the western societies are setup in a way to be more and more disadvantageous towards the working middle class. I do not need to be a billionaire to be happy, but our society is becoming more and more binary. It seems that one can either be rich or poor, in which case I opt to be rich, or at least hedge myself against being poor. Trading and investing are my hedge against this trend.

The super rich and us Below are two videos from the BBC documentary "The Super Rich and Us". It clearly illustrates and explains the polarization of wealth distribution in our current society. Here is a catchy quote from the documentary:

There are the haves, the haves not and the haves yachts! But actually we seem to be heading for a society where there are only haves not and haves yachts

Why I buy Gold and Silver

I own crypto currencies, because I have come to the conclusion that money as we know it today is no longer sustainable. I have come to this conclusion during the crisis of 2008. At that time I had the intuition / the gut feeling something was wrong not only with our financial system, but more specifically with our money. It took a few years of researching and investigating until I figured it out. The thing is, part of me did not want to believe it was true. And for a long time I did not act upon the intuition and knowledge I had. That changed last year when I decided to put my money where my mouth is and I started to accumulate crypto currencies. Cryptos align perfectly with my expertises: coding and trading. So I went for it... And with success.

Now I want to diversify my holdings more by adding Gold and Silver to it. I buy Gold and Silver as a hedge or insurance against the undwindled money printing of all of the governments / central banks of the world. Money, or actually, currenc…