> And to delete: find . -name \*.txt -empty -print0 | xargs -0 rm -v

In GNU find:

    find -name \*.txt -empty -delete

If you want to see it working:

    find -name \*.txt -empty -print -delete

-- 
| Ian! D. Allen, BA, MMath  -  [email protected] - Ottawa, Ontario, Canada
| Home: www.idallen.com   Contact Improvisation Dance: www.contactimprov.ca
| Former college professor (Free/Libre GNU+Linux) at:  teaching.idallen.com
| Defend digital freedom:  http://eff.org/  and have fun:  http://fools.ca/

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

Reply via email to