Here’s a short article on concatenating (merging) strings in Bash – the right way. Examples included. There are various ways two or more strings could be joined in a shell script. Various programs will accept strings and return them merged/concatenated – but using the side-effect… Read More »Concatenate Strings in Bash/Shell Scripts, With Examples
I'm Brad, and I'm nearing 20 years of experience with Linux. I've worked in just about every IT role there is before taking the leap into software development. Currently, I'm building desktop and web-based solutions with NodeJS and PHP hosted on Linux infrastructure. Visit my blog or find me on Twitter to see what I'm up to.
This article will show you simple methods to pass command line arguments to your Python scripts, with some examples. Passing arguments to your script makes it easy to build multi-use scripts that can work on different inputs. This is much easier than re-editing your code… Read More »Command Line Arguments in Python Scripts, With Examples
The PHP include expression allows you to import code from another file and import code from external PHP libraries. Here’s how to use it, with examples. PHP include will execute and import PHP code from another file or library. It allows you to re-use code and… Read More »PHP include – How to Use It, With Examples
Math is easy, Bash scripting is easy, so performing math/arithmetic in Bash/Shell scripts should be easy too. It is. Here’s how to do it. Working with Integers Bash’s built-in arithmetic can only handle integer (whole number) values. If you attempt to declare a variable with a non-integer… Read More »Math/Arithmetic in Bash/Shell Scripts, With Examples
This article will show you how to use variables in Bash and Shell scripts in Linux. Bash (or Linux Shell) scripts are files you write containing commands to automate common tasks and save yourself some time. Variables are things in scripts that hold a value for later… Read More »Variables in Bash/Shell Scripts and How To Use Them [Tutorial]
Pachinko? Pichinko? Pychinko? I’ve been playing around with is idea for a while because… I don’t know; it seemed like a cool concept. That’s my whole motivation. Here’s a Raspberry Pi and Python-powered pachinko machine. This project is really basic, so it’s good for beginners,… Read More »DIY Raspberry Pi/Python Powered PACHINKO [Kitchen Build]