Search Results

Search: Posts Made By: lasse
24,264
Posted By lasse
HI, i wrote it and have tested but want...
HI,
i wrote it and have tested but want someone to confirm.
thx:)
24,264
Posted By lasse
Hi all, does this code do the job? #!/bin/ksh ...
Hi all, does this code do the job?
#!/bin/ksh
find myfolder -type d|while read name
do
if (( $(ls -al $name|wc -l) == 3 ))
then
echo $name
fi
done
24,264
Posted By lasse
mkdir aa1 aa2 du -ks * |sort -n the result...
mkdir aa1 aa2
du -ks * |sort -n

the result is
1 aa1
1 aa2

and i TOUCH a new file in aa1, run again, the result still:
1 aa1
1 aa2

-size 0 can not work for empty...
24,264
Posted By lasse
how to find empty folders without using -empty
hi all:
my solaris FIND does not support
find myFolder -type d -empty
how can i find the empty folders?
thanks!
Showing results 1 to 4 of 4

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