Created
November 22, 2018 01:39
Revisions
-
jraleman created this gist
Nov 22, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #!/bin/sh if [ $# -ne 2 ] ; then echo "usage: $0 source_file target_file" ; exit 1 ; else [ -e $1 ] && [ -e $2 ] tmp=$(mktemp) mv -fv $1 $tmp mv -fv $2 $1 mv -fv $tmp $2 exit 0 ; fi