LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2004, 02:30 AM   #1
dominant
Member
 
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
moving a file


I want to move a file and give a new name with the date stamp.

I tried that as below with no success.

#mv update.log update.log-`date'
 
Old 03-31-2004, 02:42 AM   #2
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Rep: Reputation: 30
if that was your exact code you forgot the space between .log and your arguement. I'll try doing it(I just use window managers for crap like that) and post back(or more likely edit)

edit: mv has no such date option. you really should have used mv --help or man mv before posting so you could figure it out.

Last edited by Onemessedupjedi; 03-31-2004 at 02:45 AM.
 
Old 03-31-2004, 05:11 AM   #3
dominant
Member
 
Registered: Jan 2004
Posts: 409

Original Poster
Rep: Reputation: 30
any ideas?
 
Old 03-31-2004, 06:13 AM   #4
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
try using double quotes
Code:
mv update.log "update.log-`date`"
]
 
Old 03-31-2004, 07:39 AM   #5
dominant
Member
 
Registered: Jan 2004
Posts: 409

Original Poster
Rep: Reputation: 30
thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help moving a file rajvirnijjar Linux - General 3 02-15-2005 10:21 AM
Moving a File... scott.holmes Linux - Software 7 08-06-2004 08:35 AM
can you help with moving file please ? SlackwareMan Linux - Newbie 2 07-29-2004 09:25 PM
Moving huge file? jbrashear Debian 4 02-21-2004 08:23 PM
Moving around my file system... slackMeUp Slackware 9 01-31-2004 07:15 PM


All times are GMT -5. The time now is 04:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration