Skip to content
Permalink
Browse files

Added a swap function to swap filenames of 2 files

  • Loading branch information...
eko committed Mar 14, 2019
1 parent e97c9fd commit 8c5a864943c210e503530a0942425ccb2ba7bedc
Showing with 5 additions and 0 deletions.
  1. +5 −0 .functions
@@ -392,3 +392,8 @@ function kforward {
podName=`kubectl get pods -n $2 --context $1 | grep $3 | cut -d' ' -f1`
kubectl port-forward --context=$1 -n $2 $podName $4
}

# Usage: swap <file1> <file2>
function swap() {
mv $1 $1.tmp && mv $2 $1 && mv $1.tmp $2;
}

0 comments on commit 8c5a864

Please sign in to comment.
You can’t perform that action at this time.