Mac OS Sierra and srm

I had a script for securely emptying my trash bin from time to time and I was using srm. I suppose people would still have uses for srm. However, it appears that srm no longer ships with mac os. Are you aware of a candidate alternative to srm? Any word by anyone at all?

P.S. For example, here is random example where srm is used for securely emptying the trash bin. Notice that the example is for El Capitan, so srm disappeared in mac os Sierra (or at least, this appears to be the case).


Solution 1:

You can use rm -P

     -P          Overwrite regular files before deleting them.  Files are overwritten three times, first with the byte pattern 0xff, then 0x00, and then 0xff again, before they are deleted.