Add bash function to swap two files