cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rakesh_dama
Level 6

Special Character "?" in file name

Hi,

 

I am using below date command to get timestamp and writing it into $logtimestamp$ variable.

date +%F_%H_%M_%S

Creating a log file with that timestamp. But, strangely I see that "?" character getting added in file name. 

default_linux_version_2019-10-15_16_13_53?.cfg

sometimes

default_linux_version_2019-10-15_16_13_53\^J.log

 

Can someone help .

0 Kudos
(2) Replies
Revenera_Ian
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi @rakesh_dama,

Thank you for your post. Sorry about the delayed response.

It would be best to open a new support ticket for this issue. If you have not already done so, could you please open a new support ticket for this issue?

Thanks,

Ian

0 Kudos

I have followed the below document.

https://community.flexera.com/t5/InstallAnywhere-Knowledge-Base/Removing-the-Newline-Character-from-Execute-Script-Batch-File/ta-p/3678/jump-to/first-unread-message Defined:

MS_SEARCH_AND_REPLACE : all

MS_STRING_TO_CONVERT : $timestamp$

MS_SEARCH_STRING : \\n

MS_REPLACE_STRING :

Output of below variables is printed as null.

MS_NEW_SAR_STRING :

MS_STRING_DBS :

MS_STRING_FS :

MS_PARENT_DIR :

MS_ROOT_DIR :

MS_STRING_TRIM :

0 Kudos