1
~$ echo $(date +%a%d\ %X) lun.24 17:40:28 ~$ inode-1 thunar.desktop lun.24% +17:40:40 ~$ cat inode-1 #/bin/bash # inode_check xdg-mime query default inode/directory >> /home/<user>/f1; echo $(date +%a%d%\ +%X) >> /home/<user>/f1; cat f1 

How do you explain the presence of lun.24% in the script output? What would be the correct syntax to get rid of the % character?

1 Answer 1

4

You aren't using the same format.

 v echo $(date +%a%d\ %X) echo $(date +%a%d%\ +%X) ^ 
1
  • 1
    you're right, I removed the % in d% that should never have been there. It was indeed a stupid mistake. Thank you very much. Commented Feb 24 at 17:25

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.