<div dir="ltr"><div>I would rename that mess so that ".pdf" stays, but spaces and "." are changed to "_". This can be done with sed in Linux or use filePro with mid() and xlate().</div><div><br></div><div>Maybe you could post your script so that we can offer suggestions so that it would work properly.<br></div><div><br></div><div>Laura Brody<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 2, 2019 at 4:17 PM scooter6--- via Filepro-list <<a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have a bunch of XML data I import to a filePro database (5.6.10R4) on<br>
CentOS 7<br>
<br>
Several of the fields are names of files that have been uploaded to the<br>
same server<br>
<br>
We get silly client that like to name their files something like:<br>
T01245.John.Smith_Statement.Oct2019.pdf<br>
<br>
Through my code I come up with my own naming convention and I do a system<br>
call to a script that renames the file - but it doesn't seem to work on<br>
file names that have several '.' in them<br>
<br>
I pass dd=chr("34"){name of the existing file name{chr("34") but that<br>
doesn't seem to work<br>
dc=chr("34"){name I am changing file to{chr("34")<br>
<br>
system "/path/to/my/script.sh"<dc<dd  (which is a script that simply does a<br>
mv in the directory the files are located)<br>
<br>
Wouldn't filepro be passing quotes "  in this instance so Linux wouldn't<br>
then care if the name of the file had multiple '.' in it?   It works as<br>
designed for any file names that don't have multiple '.' in them...<br>
<br>
thanks<br>
<br>
Scott<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20191002/783a4f32/attachment.html" rel="noreferrer" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20191002/783a4f32/attachment.html</a>><br>
_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.celestial.com</a><br>
Subscribe/Unsubscribe/Subscription Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" rel="noreferrer" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
</blockquote></div>