On Mon, 28 Dec 2020 19:39:29 -0500 James <[email protected]> wrote: > 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.
What about: find . -name \*.txt -empty -ls And to delete: find . -name \*.txt -empty -print0 | xargs -0 rm -v Regards, Dianne. To unsubscribe send a blank message to [email protected] To get help send a blank message to [email protected] To visit the archives: https://lists.linux-ottawa.org
