12 lines
144 B
Bash
Executable file
12 lines
144 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Go up a number of dirs
|
|
if [[ $# < 1 ]] ; then
|
|
cd ..
|
|
else
|
|
CDSTR=""
|
|
for i in {1..$1} ; do
|
|
CDSTR="../$CDSTR"
|
|
done
|
|
cd $CDSTR
|
|
fi
|