<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Server: <span class="Apple-tab-span" style="white-space:pre">        </span>FreeBSD 9.2</div><div>Filepro:<span class="Apple-tab-span" style="white-space:pre">        </span>5.7.0.4</div><div><br></div><div>I am looking a way to have filepro verify whether a file exists using only a partial file name (like grep). This will be used with photographs from all sorts of cameras so instead of trying to account for every possible camera filename structure, i would like to be able to supply filepro with 3-4 numbers and a directory and have filepro determine if a file with that number exists in a file name. that will be accurate enough for what i need the code to do. </div><div><br></div><div>below is a simple file list, and beneath that is how i would imagine i would use the exists command to accomplish what i am trying to do (however it does not appear to work with asterisk variables). Is there either different syntax to use with the exists command, or possibly a different command that will do this? I could use a system command that could LS the directory and then grep the result to a file, and then use exists on that output file, but i am looking to see if there is a more elegant solution self contained within filepro itself. Thank you very much in advance. </div><div><br></div><div><div><font face="Andale Mono">[root@filepro a]# ls</font></div><div><font face="Andale Mono">IMGP0997.JPG<span class="Apple-tab-span" style="white-space: pre; ">        </span>IMGP0999.JPG<span class="Apple-tab-span" style="white-space: pre; ">        </span>IMGP1001.JPG<span class="Apple-tab-span" style="white-space: pre; ">        </span>IMGP1003.JPG</font></div><div><font face="Andale Mono">IMGP0998.JPG<span class="Apple-tab-span" style="white-space: pre; ">        </span>IMGP1000.JPG<span class="Apple-tab-span" style="white-space: pre; ">        </span>IMGP1002.JPG<span class="Apple-tab-span" style="white-space: pre; ">        </span>IMGP1004.JPG</font></div></div><div><br></div><div><font face="Andale Mono">::aa="0998":</font></div><div><font face="Andale Mono">:exists("/tmp/a/*"{aa{"*") eq "1":msgbox aa<"exists":</font></div><div><font face="Andale Mono"><br></font></div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); "><br class="Apple-interchange-newline">James Flanagan</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(0, 106, 227); "><span style="text-decoration: underline; "><a href="http://Flantec.com/">Flantec.com</a></span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); min-height: 14px; "><br></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(0, 106, 227); "><span style="color: rgb(121, 121, 121); ">email:<span class="Apple-tab-span" style="white-space: pre; ">        </span><a href="mailto:James@Flantec.com"><span style="text-decoration: underline; color: rgb(0, 106, 227); ">James@Flantec.com</span></a></span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); ">mobile:<span class="Apple-tab-span" style="white-space: pre; ">        </span>760-458-8498</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); ">home:<span class="Apple-converted-space"> </span><span class="Apple-tab-span" style="white-space: pre; ">        </span>219-221-6219</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(0, 106, 227); "><span style="color: rgb(121, 121, 121); ">text:<span class="Apple-tab-span" style="white-space: pre; ">                </span><a href="mailto:7604588498@txt.att.net"><span style="text-decoration: underline; color: rgb(0, 106, 227); ">7604588498@txt.att.net</span></a></span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); min-height: 14px; "><br></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); ">aim:<span class="Apple-tab-span" style="white-space: pre; ">                </span>Flantec</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); ">oovoo:<span class="Apple-tab-span" style="white-space: pre; ">        </span>Flantec</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); ">Skype:<span class="Apple-tab-span" style="white-space: pre; ">        </span>Flantec</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(0, 106, 227); "><span style="color: rgb(121, 121, 121); ">ichat:<span class="Apple-tab-span" style="white-space: pre; ">        </span><a href="mailto:Flantec@mac.com"><span style="text-decoration: underline; color: rgb(0, 106, 227); ">Flantec@mac.com</span></a></span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); min-height: 14px; "><br></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); ">home:<span class="Apple-tab-span" style="white-space: pre; ">        </span>1901 Cidermill Road</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); "><span class="Apple-tab-span" style="white-space: pre; ">                </span>Michigan City, IN 46360</div></span>
</div>
<br></body></html>