How to Concatenate String Variables in Bash
Bash utilities make so many tasks simple, but not all tasks have a straightforward command or operator. A very common and usual task in many scripting scenarios is concatenating string variables. Bash doesn't have a built-in function or command-line utility to concatenate two strings together. However, there are many ways...
Generating Command-Line Interfaces (CLI) with Fire in Python
A Command-line interface (CLI) is a way to interact with computers using textual commands. A lot of tools that don't require GUIs are written as CLI tools/utilities. Although Python has the built-in argparse module, other libraries with similar functionality do exist. These libraries can help us in writing CLI...
Command Line Arguments in Java - Accessing and Mapping to Data Types
Command line arguments (parameters) are strings of text used to pass additional information to a program when an application is run through the command line interface (CLI) of an operating system. In this tutorial, we'll be accessing the arguments (parameters) passed into the main method of a Java application and...
How to Write a Makefile - Automating Python Setup, Compilation, and Testing
When you want to run a project that has multiple sources, resources, etc., you need to make sure that all of the code is recompiled before the main program is compiled or run. For example, imagine our software looks something like this: main_program.source -> uses the libraries...
How to Use the grep Command on GNU/Linux
Grep is a powerful, yet very simple tool. By default, it searches through an input and prints a single or multiple lines that contain text matched to a pattern specified in the command call. Before grep became such a widespread tool for the GNU/Linux system, it used to be...