I have a script that has this in it:
if [ -d $pathname_to_move ] ; then
mv -f $pathname_to_move* $pathname_to_make
The problem is if the move directory ($pathname_to_move*) doesn't have any files in it I get an error for the move. In a ksh script how do I detect if a dir has any files in it? This is only part of the script so please don't respond with there is not a need to use this command etc...