#!/bin/bash for x in $(ls $1 | wc -l); do echo $x done