Changing file name in email attachment.



Is it possible to remove the file path from the name of an email attachment?

Instead of:
_informatica_Server_data_TgtFiles_FILENAME.csv

I'd like to see this in my email:
FILENAME.csv

i've used the following command

mailx -s 'Test subject' -a
$PMTargetFileDir/FILENAME.csv

but it is sending only mail not the attachment.
Please advise.

g.nagaprasad@gmail.com

Return to forum:

Changing file name in email attachment.

Hi,
Yoi need to implement some shell logic to rename the file and then proceed with the next operation.