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

Re: help with find

On 2020-12-28 8:20 p.m., James wrote:
I want to check al the file sizes before I delete things because I am paranoid. :-)

find -name \*.txt -empty -print0 | xargs -0 trash

`trash` moves files to the desktop trash can. In Debian systems, you can download it with:

sudo apt-get --yes install trash

If you make a mistake, you can restore the file to its directory with `trash-restore`.

references

message navigation