A separate process creates a couple of files on PI file system (say Message_1.tmp, Message_2.tmp and so on).
In my scenario, I when I create a target file using receiver file adapter, these tmp files should be renamed to .xml or be deleted. I am using two separate file adapters for renaming and deletion.
In either case, if I use wildcards like *, it does not work.
i.e. the following OS command
deletes the file Message_1.tmp
but the command
does not work. I need a command that can delete all .tmp file starting with "Message_".
Same issue is with renaming files.
mv /path/Message_1.tmp /path/Message_1.xml
mv /path/Message_*.tmp /path/Message_*.xml
does not work.
Any help is highly appreciated.