$ cat swap_file
#!/bin/sh
mv $1 $1.tmp
mv $2 $1
mv $1.tmp $2
exit

swap_fileをPATH通っているところに置く
とか?