1、IFS的介绍shell 脚本中有个变量叫IFS(Internal Field Seprator) ,内部域分隔符,其完整定义是:The shell uses the value stored in IFS, which is the space, tab, and newline characters by default, to delimi[...]
shell do done 嵌套shell能够自动识别匹配的do和done字符,这种模式很常见,比如通常的小括号、中括号、花括号匹配等等,它们的本质都是字符匹配。shell do done 嵌套实例实例1:循环显示某个目录的所有文件名称filelist=`ls -l|awk {'print $9'}`
for file in $filelist
d[...]