Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using While

Status
Not open for further replies.

tdfreeman

MIS
Mar 28, 2002
85
US
I am trying to figure out how to use while. I am testing a script and get an error: bad number. The following is my script. Any ideas?

#!/bin/ksh
file1=/usr/users/oracle/TEST/out_PBBV

while (( ! -a $file1 ))
do
cp temp temp1
done

 
while [ ! -a $file1 ]
do
cp temp temp1
done vlad
+---------------------------+
|#include<disclaimer.h> |
+---------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top