⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dirs

📁 Berkely的学生写的
💻
字号:
#!/bin/sh# Chapter 14 - Sharing data between functions# This function implements the csh dirs command that lists# the current directory stack.# You will need to "source" this file into your environment# using the . command.dirs() {     # save IFS, then set it to : to access the    # the items in _DIR_STACK individually.    OLDIFS="$IFS"    IFS=:    # if there are directories on the stack print each     # one followed by a space    if [ -n "$_DIR_STACK" ] ; then	for i in $_DIR_STACK    	do            /bin/echo "$i \c"    	done    fi    # add a new line after all entries in _DIR_STACK     # have been printed    echo    # restore IFS    IFS="$OLDIFS"}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -