On Mon, 28 Dec 2020 19:39:29 -0500 James <bjloc...@lockie.ca> 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 linux+unsubscr...@linux-ottawa.org To get help send a blank message to linux+h...@linux-ottawa.org To visit the archives: https://lists.linux-ottawa.org