I would still suggest to get rid of the space in between. But if you really want a space then use thismdtauseefhussain wrote: What if we want to bring the date format like this with file name
Sample 2006-07-14 22:25:30.txt
Code: Select all
date +"%Y-%m-%d %H:%M:%S"