Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function up {
- if [ -z "$1" -o ! "$1" -gt 0 ]; then
- cd ..
- else
- CDSTR=""
- for i in $(seq 1 $1) ; do
- CDSTR="../$CDSTR"
- done
- cd $CDSTR
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement