removing period from file names

scooter6 at gmail.com scooter6 at gmail.com
Wed Oct 2 13:16:54 PDT 2019


I have a bunch of XML data I import to a filePro database (5.6.10R4) on
CentOS 7

Several of the fields are names of files that have been uploaded to the
same server

We get silly client that like to name their files something like:
T01245.John.Smith_Statement.Oct2019.pdf

Through my code I come up with my own naming convention and I do a system
call to a script that renames the file - but it doesn't seem to work on
file names that have several '.' in them

I pass dd=chr("34"){name of the existing file name{chr("34") but that
doesn't seem to work
dc=chr("34"){name I am changing file to{chr("34")

system "/path/to/my/script.sh"<dc<dd  (which is a script that simply does a
mv in the directory the files are located)

Wouldn't filepro be passing quotes "  in this instance so Linux wouldn't
then care if the name of the file had multiple '.' in it?   It works as
designed for any file names that don't have multiple '.' in them...

thanks

Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20191002/783a4f32/attachment.html>


More information about the Filepro-list mailing list