因为每次用到while循环,都会出现一些小问题,老是多加一个“:”
特此记录一个简单的例子:
@H_404_18@[root@zfl-ceshi tmp]# cat tt.sh
@H_404_18@#!/bin/bash
@H_404_18@while true
@H_404_18@do
@H_404_18@ echo "1223333"
@H_404_18@ sleep 0.5
@H_404_18@done
@H_404_18@[root@zfl-ceshi tmp]#