LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   display date (http://www.linuxquestions.org/questions/linux-newbie-8/display-date-505538/)

user52 11-28-2006 08:08 AM

display date
 
hello sir

sir i create shell scirpt for export backup

and now i want to schedule it..
so i want exp bkp file take sysdate automatically everyday....

so sir how can i add sysdate with exp backup like
file=exp_sysdate ( 28112006)


taj

acid_kewpie 11-28-2006 08:15 AM

just use the date command, e.g

echo hello the date is $(date) > atextfile-$(date +%d%m%y)

user52 11-28-2006 08:20 AM

sir thanx for ur reply i am not understand plz help


sir my shell script like

name is exptest.sh
oracle@spiora]$vi exptest.sh
#!/bin/bash
./exp hr/hr tables=emp file=/db/bkp/exp_sysdate(here i want date)
shift+ZZ

oracle@spiora]$./exptest.sh


sir plz reply how can i use date variable in my above script.

thank you..


All times are GMT -5. The time now is 07:33 AM.