Created
February 18, 2019 15:05
-
-
Save scottydocs/d9aec655d95264ac16dd7c4d330c31ab to your computer and use it in GitHub Desktop.
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
{ | |
LIMIT=$1 | |
P=$PWD | |
echo "Moving $LIMIT directories up from $P" | |
for ((i=1; i <= LIMIT; i++)) | |
do | |
P=$P/.. | |
done | |
cd $P | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment