Select Page

Online Compiler and Code Executor for Bash

Bash Online Compiler

You can run and write your Bash code using The Research Scientist Pod’s Bash online compiler completely free.

Hello World Bash Example

Here is a simple Hello World example to get you started using Bash.

# Hello World Bash Shell Script Using Variables

# -------------------------------------------------

# Define bash shell variable called var
# Avoid spaces around the assignment operator (=)
var="Hello World"

# print it
echo "$var"

# Another way of printing it
printf "%s\n" "$var"