How I can make rm to single pass secure delete items in macOS? According to the rm man page rm -P ... overwrites items three times to delete them securely:


  -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.


Is it possible to single pass secure delete items with rm ...?

Notes: 


I don't want to use srm! I need rm only, please.
I use a MacBook with an HDD and macOS 10.13.
No, that is not possible with the standard rm command.

You could download the rm source code (rm.c) from opensource.apple.com and edit the rm_overwrite() function to only do a single pass.

Or you could use an alternative program that overwrites the file, and then afterwards use rm to delete it. Such an alternative program could just be to use cat or dd to copy bytes from /dev/urandom or /dev/null over the file.