little tips and tricks, which i stumbled upon randomly

Wednesday, May 15, 2013

unix while loop in bash

Simple as is :)

i=0;while [ $i -le 1 ]; do clear;ps -ef | grep java;sleep 3;done

0 comments:

Post a Comment