ex-13-01_echo.sh

来自「Berkely的学生写的」· Shell 代码 · 共 26 行

SH
26
字号
#!/bin/sh# Chapter 13 - Input/Output# This example demonstrates using escapes in the echo command# # You make have to change:##  /bin/echo## to ##  /bin/echo -n## in order to get your output to match the example in the bookDIRS_TO_MAKE="fruit/basket"FILES="fruit/apple fruit/banana fruit/orange fruit/pear fruit/plum fruit/peach"DEST="fruit/basket"/bin/echo "Making directories, please wait...\t\c"for i in ${DIRS_TO_MAKE} ; do mkdir -p $i ; doneecho "Done."/bin/echo "Copying files, please wait\t\c"for i in ${FILES} ; do cp $i $DEST && /bin/echo ".\c" ; done/bin/echo "\tDone."

⌨️ 快捷键说明

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