57. 請打下面的指令
echo hello world (enter)
滑鼠游標到顯示的 hello world 那行中的 world
Double click ( 左鍵 )
Click ( 左鍵 )
echo 後 click 中鍵
echo 後按 shift + ins
58. 請打下面的指令
echo hello world (enter)
滑鼠游標到顯示的 hello world 那行中的 world
Double click ( 左鍵 )
Ctrl + shift + c
echo 後 Ctrl + shift + v 再按 enter
ctrl + l
ctrl + shift + t
59. 變數 , IFS 以及 quote
VAR1=my test
echo $VAR1
VAR1="my test"
echo $VAR1
for i in $VAR1; do echo $i ; done
63. Job control
while [ true ] ; do echo test ; sleep 5 ; done
Enter
Ctrl + c
64. Job control
while [ true ] ; do echo test ; sleep 5 ; done &
Enter
vi (enter)
Ctrl + z
jobs (enter)
fg 1 (enter)
Ctrl + c
fg 2 (enter)
Quit vi
65. Return value and conditional
ls (enter)
if [ $? = 0 ] ; then echo ok; else echo bad; fi
(enter)
ls --bad (enter)
if [ $? = 0 ] ; then echo ok; else echo bad; fi
(enter)
66. Return value and conditional
ls && echo ok || echo bad
ls --bad && echo ok || echo bad