Iam trying to append date to a file that iam creating but it results in no such file or directory found error. If i remove the date from the below code it works fine.
fileName="other.txt."$(date "+%D %T")
echo "hello" >> $fileName
Iam trying to append date to a file that iam creating but it results in no such file or directory found error. If i remove the date from the below code it works fine.
fileName="other.txt."$(date "+%D %T")
echo "hello" >> $fileName