simple-bash-scripts
simple-bash-scripts copied to clipboard
scripts/up.sh
Hi @ruanyf ,
I'm not getting the " sh=$(which $SHELL) exec $sh ". What you are trying to achieve over here .
#!/bin/bash
LEVEL=$1 for ((i = 0; i < LEVEL; i++)); do echo $i CDIR=../$CDIR done cd $CDIR echo "You are in: "$PWD sh=$(which $SHELL) exec $sh