#!/bin/bash LIST=(*) ARR_SZ=${#LIST[@]} for ((i = 0; i < ARR_SZ; i++)) do echo "${LIST[$i]}" done;