Last active
July 23, 2018 13:10
-
-
Save Sonique/eb277e4bd447c6bf8727 to your computer and use it in GitHub Desktop.
Bash: swap files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function swap() { mv $1 $1._tmp; mv $2 $1; mv $1._tmp $2; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment