Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have a Unix-y bash script and a Python script:

#!/bin/bash
for item in $*
do
    for file in `find $item -type f`
    do
        bitscrubber_internal $item
    done
    rm -rf $item
done

and

#!/usr/bin/python

import sys

filename = sys.argv[1]

length = len(open(filename).read())

for number in [0x0, 0xff, 0xf0, 0x0f]:
    open(filename, 'wb').write(('%f' % number) * length)

I know this will run into preventable scaling issues if it encounters a file that won't fit in memory, but apart from that, will this scrub over the same bits in the file, or create a new file which scrubs old blocks only by coincidence? I am running Lion.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.