Skip to content

Instantly share code, notes, and snippets.

@agamm
Created August 19, 2013 16:30
Show Gist options
  • Save agamm/6271077 to your computer and use it in GitHub Desktop.
Save agamm/6271077 to your computer and use it in GitHub Desktop.
Epic up shell command. Tired of doing cd .. or cd ../ all the time?
up(){
limit=$1
startloc=`pwd`
for((i=1 ; i <= limit ; i++))
do
cd ..
done
echo "From: $startloc"
echo 'To: ' `pwd`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment