#! /bin/bash search_dir="/home/tyson/Desktop/ShellScript" for entry in "$search_dir"/* ; do if [ -f $entry ] ; then echo "$entry" fi done
Scripting is sorcery
#! /bin/bash search_dir="/home/tyson/Desktop/ShellScript" for entry in "$search_dir"/* ; do if [ -f $entry ] ; then echo "$entry" fi done