2009년 7월 7일 화요일

while

* sh
#!/bin/sh

while [ 1 ]
do
   clear
   date
   ls -al
   sleep 1
done

* csh
#!/bin/csh

while 1
   clear
   date
   ls -al
   sleep 1
end

댓글 없음:

댓글 쓰기