Skip to content

Instantly share code, notes, and snippets.

@joewilliams
Forked from boorad/sudo.sh
Created November 12, 2012 19:23
Show Gist options
  • Save joewilliams/4061317 to your computer and use it in GitHub Desktop.
Save joewilliams/4061317 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