Created
August 19, 2013 16:30
-
-
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?
This file contains 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 characters
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