Skip to content

Instantly share code, notes, and snippets.

@boorad
Created November 12, 2012 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save boorad/4061306 to your computer and use it in GitHub Desktop.
Save boorad/4061306 to your computer and use it in GitHub Desktop.
sudo to sesudo
#!/bin/bash
declare -a args
while [ $# -gt 0 ] ; do
case "$1" in
-n) shift ;;
*) args=("${args[@]}" "$1") ; shift ;;
esac
done
echo "sesudo ${args[@]}"
#sesudo ${args[@]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment