-
-
-
-
- cd /home && LOG_FILE=laravel-$(date --date="tomorrow" +"%Y-%m-%d").log && [ ! -f $LOG_FILE ] && echo "" > $LOG_FILE
-
-
-
Created
November 23, 2022 10:56
-
-
Save quan-vu/9f5d3f07def51c02fa5c0e3933f3bec8 to your computer and use it in GitHub Desktop.
Bash script create a file with date if not exist
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment