Skip main navigation

New offer! Get 30% off your first 2 months of Unlimited Monthly. Start your subscription for just £35.99 £24.99. New subscribers only. T&Cs apply

Find out more

Conditional Expressions

Earlier in the week, we look at how to assign values to variables. Now, we’re going to start looking at how we can compare them. To do this, we use …

Command Line Basics

In this video, Martin is presenting basic Linux commands pwd, cd, ls, rm, mv, mkdir, man. You are welcome to type along, but please beware that you can permanently delete …

Bash Arrays

In the previous step we introduced you to Bash variables which can be used to hold temporary information. A variable holds a single value under a single name. By contrast, …

Variables and Their Scope

Bash variables provide temporary storage for information. You can use them to store words/phrases (strings), decimals or integers. Variables To assign a variable, we use the = symbol: name="Victoria"   …

Adding Comments to Bash Scripts

Comments are one of the most important things to consider when you are writing your scripts. Making sure that you add comments throughout your scripts is just one of many …

Substitutions Using sed

Replacing one text string with another is something we often need to do. This could be because we’ve discovered a repeated typo or misspelling in a file or because we’ve …

Programming: How to Read Data From Files in R

Introduction Indeed, you will often be willing to exploit the usefulness of built-in functions in R to manipulate large data sets. Although these data sets are organized as data frames, …

What is R in computing?

R is a “language and environment for statistical computing and graphics”. R is an integrated suite of facilities for data manipulation, calculation and graphical display. Among other things it has: …

User Input

Watch Victoria presenting simple scripts demonstrating how to capture user input into a script Here are the scripts used in this video: whoami.sh #!/usr/bin/env bashecho "Please enter your name."read nameecho …