Return to Snippet

Revision: 29303
at July 26, 2010 16:55 by mprabhuram


Initial Code
#take backup                                                                                                                                      

    NOW=$(date +"%b-%d-%y%H:%M")
    BKPFILE="hadoop-env-$NOW.sh"
    echo $BKPFILE
    cp hadoop-env.sh "$BKPFILE"

Initial URL
http://www.cyberciti.biz/tips/shell-scripting-creating-reportlog-file-names-with-date-in-filename.html

Initial Description

                                

Initial Title
Add date and time to filename

Initial Tags

                                

Initial Language
Bash