All Stories

Bash script getting parameters from the users

A basic introduction on passing parameters to shell scripts

Bash script safety net

We can instruct our scripts to stop when a problem is found with the set -euo pipefail directive.

If, then. Condition checking for Bash scripts

The idea to check if some condition is true before executing some commands is very simple and useful. The Bash syntax, for historical reasons, is probably the ugliest you’ll ever...

for loops in Bash scripting

After a small introduction to Bash scripting, we finally create a first bioinformatics script… introducing one of the loops we can use with the shell. A loop is a structure...

A small introduction to Bash scripting

After using the Linux terminal for a while, everyone wants to be able to write simple “scripts” to perform repetitive tasks. They looks like recipes, with the main difference of...

A Simple Introduction to XML and JSON

Two popular formats to store structured data are XML and JSON. They are used everywhere in computer science and appear more and more often in bioinformatics analyses as well.