#!/bin/bash #Making an array array=(1 2 3) #Appending the array array+=(4) #Printing the array echo ${array[@]}