I\'m trying to get the contents of a directory using shell script.
My script is:
for entry in `ls $search_dir`; do echo $entry done
find "${search_dir}" "${work_dir}" -mindepth 1 -maxdepth 1 -type f -print0 | xargs -0 -I {} echo "{}"