Possible Duplicate:
How do I apply a shell command to many files in nested (and poorly escaped) subdirectories?
I am using this loop to remove empty lines in all files under given directories and sub directories. But it is not working
for file in /home/zubinan/public_html/src/Acme/*/*.php
do
sed '/^$/d' $file > tt
mv tt $file
done
It says Demo is a directory