一些shell处理中的常用逻辑: ①无限循环:loop: goto loop的形式可以实现无限循环;②判断文件是否存在 if exists path ( ) else ( );③Sleep超时:一般采用ping本机来代替,因为一次ping间隔1秒;④cat文件内容,在windows上面是type;