Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Echo and date
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Thu Feb 05, 2004 3:06 pm    Post subject: Echo and date Reply with quote

How can I use echo to putout the date.
I want to use this in a backupscript.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Feb 05, 2004 3:27 pm    Post subject: Reply with quote

assuming you are using bash:
Code:

echo $(date)

"man date" if you like a different date format.
Back to top
View user's profile Send private message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Thu Feb 05, 2004 4:56 pm    Post subject: Reply with quote

Works great! Thanks! :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum