create a loop to check file.conf for content that could be in file or yet to be and exit only when content found : #!/bin/bash
cd  /root/.OceanVieW

KEY= cat ocean.conf |grep "GreatSea" |cut -d "=" -f2

until [ `echo $key|wc -m` -gt 1 ]; do sleep 5 ; done

