2020年10月3日土曜日

bash for and while

 

全てのcsvを0 length にする。

for i in *.csv ; do  cat /dev/null >  $i; done


無限ループ。「while : (コロン)」で無限ループになる。

$  while : ; do echo 'hello'; sleep 10 ; done

0 件のコメント: