#!/bin/bash curDATE="Screenshot_" #Add the year to the variable curDATE+=$(date | awk '{print $7}') #Add the month and day curDATE+="-"$(date +"%m-%d") #Add the time curDATE+="_"$(date +"%H-%M-%S") curDATE+=".png" echo $curDATE