Search Results

Search: Posts Made By: apenkov
20,127
Posted By apenkov
CNT=`ls $dir/* | wc -l` if [ $CNT -eq 0 ];...
CNT=`ls $dir/* | wc -l`
if [ $CNT -eq 0 ]; then
echo "There are no files in the dir"
else
echo "There are files in the dir"
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 12:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy