how can i use while loop ?
while file is empty do....
if not empty do .....
in bash
how can i use while loop ?
while file is empty do....
if not empty do .....
in bash
From man bash, section on Conditional Expressions:
-s file
True if file exists and has a size greater than zero.