Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-31-2004, 01:30 AM   #1
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, 01:42 AM   #2
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 01:45 AM.
Old 03-31-2004, 04:11 AM   #3
Registered: Jan 2004
Posts: 409

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

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

Original Poster
Rep: Reputation: 30


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 09:21 AM
Moving a File... scott.holmes Linux - Software 7 08-06-2004 07:35 AM
can you help with moving file please ? SlackwareMan Linux - Newbie 2 07-29-2004 08:25 PM
Moving huge file? jbrashear Debian 4 02-21-2004 07:23 PM
Moving around my file system... slackMeUp Slackware 9 01-31-2004 06:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:37 PM.

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