Thursday, August 4, 2011

[LINUX_Newbies] Re: Need help with "mv" command

 

Thanks Paul for your help.  I'll have a look to those programs, and see if they are suitable for this task.

In advance; "tar" is the hardest and confusing term I've ever (try not to) use.  I've never been able to untar my own files, specially if it is mixed with .bz .zip .gz... etc.

I'm trying to do it with the "mv" command, to back up those files, before I go running to the nearest Office Depot and buy an external HD, that certainly is the best way to backup those files, and the easiest too, but I'd like to solve this problem, maybe it is posible, maybe not.

I'll try to explain better, what the problem is (it is a little hard, because spanish is my main language):

Folder "Music" has 7650 files, 27.1 GB total size.
Within this folder, I create folder bkup01, and drag and drop files until I reach 4.3 GB, when complete... I will burn folder bkup01 to a DVD, and create folder bkup02... and so on.

Command line is faster:

My sintax would be: /mv a*.mp3 /bckup01
That will move all the files starting with "a" to the folder bckup01 (and create this folder if this not exists), then /mv b*.mp3 /bckup01.... n, until I "guess" there are 4.3 GB in that folder

I wonder if there is a simple sintax, that can create the folder "bkup01" and move files to that folder just until the size of the folder reach 4.3 GB

$mv *.mp3 /bkup01 <= 4.3 GB or 4300000 b or something like that

done that, I'll simply change the syntax to bkup02... n, until done.

Is that possible?

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
.

__,_._,___

No comments:

Post a Comment