home | list info | list archive | date index | thread index

help with find

I want to find all the empty .txt files under the current directories.
I eventually want to delete them. :-)
There are spaces in the directory names.

I tried:
find . -name \*.txt -empty -exec "ls -l '{}'" \;
but it gives "No such file or directory" errors (which I am guessing is from the ls -l.


To unsubscribe send a blank message to linux+unsubscribe [ at ] linux-ottawa [ dot ] org
To get help send a blank message to linux+help [ at ] linux-ottawa [ dot ] org
To visit the archives: https://lists.linux-ottawa.org

replies

message navigation