very small bash script question
Lawrence Chim writes: > Does anyone know how to check a directory is empty > in bash script? > > lawrence, > This seems to work for me. --- dir_is_empty --- #! /bin/bash # syntax dir_is_empty [optional_directory] # return 0 if it is empty #
very small bash script question
Does anyone know how to check a directory is empty in bash script? lawrence,