Script to perform bitwise operations on files