One could rsync -avP --delete-during /var/empty /dir/to/clean/ also if you
like to see a list of files flash by.
Or something with find ... -exec rm {} + and later something to clean out
links, sockets and/or dirs.


2016-04-03 9:39 GMT+02:00 Raul Miller <rauldmil...@gmail.com>:

> On Sun, Apr 3, 2016 at 2:57 AM, Max Power <open...@cpnetserver.net> wrote:
> > Hi guys!
> > Is there a way to view the deleted file or a progress bar
> > while you're erasing them?
> >
> > Thanks for Your reply.
>
> Do you mean like this?
>
> yes | rm -i ./* 2>&1 | sed 's/remove //g; s/\?//g' |fmt
>
> If that kind of behavior is what you want, you could make that command
> line into a shell script, replacing the ./* with "$@". This would
> allow you to use it with xargs, for example (though, for xargs, you
> might also want to remove the |fmt and pipe the result of xargs to
> fmt...).
>
> If you want something different, I guess you would have to be a bit
> clearer on what you are asking for.
>
> Thanks,
>
> --
> Raul
>
>


-- 
May the most significant bit of your life be positive.

Reply via email to