📄 ex-13-01_echo.sh
字号:
#!/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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -