📄 example08.42
字号:
#!/bin/sh# This program demonstrates the scope of variables when # assigned within loops where the looping command uses # redirection. A subshell is started when the loop uses # redirection, making all variables created within the loop # local to the shell where the loop is being executed.while read linedo echo $line # This line will be redirected to outfile name=JOEdone < testing > outfile # Redirection of input and outputecho Hi there $name
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -