[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

error in script



Trying to run a test to see if certain files exists in a certain location
using the following:
# Check files at location
LOCSAV="/usr/local/sop"
if [ -e $(ls -l $LOCSAV/*.ide) ]
it comes up with an error, can some lend a hand in fixing this?

Thanks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 10pt Arial; MARGIN-LEFT: 2px">
<DIV>Trying to run a test to see if certain files exists in a certain 
location</DIV>
<DIV>using the following:</DIV>
<DIV># Check files&nbsp;at location</DIV>
<DIV>LOCSAV="/usr/local/sop"<BR>if [ -e $(ls -l $LOCSAV/*.ide) ]</DIV>
<DIV>it comes up with an error, can some lend a hand in fixing this?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks</DIV></BODY></HTML>

Reply to: