moving large number of files

From: Richard Yu (ryu_at_comxpert.com)
Date: 01/25/05


Date: Wed, 26 Jan 2005 00:20:51 +0800

Hi,

I try to move large number of files in one folder to another folder, but it
does a copy only instead of move. Can anyone help me the move command,
thanks.
(just to use mv will get me error, argument too long)

cd /home/folder1
tar c . | (cd /home/folder2/; tar xv)

36,000 files in /home/folder1
36,000 files in /home/folder2

after execute the commands,

36,000 files in /home/folder1
72,000 files in /home/folder2

Best regards,
Richard.



Relevant Pages

  • RE: Cannot delete file with name ended with a dot.
    ... How deep is the structure where the file is located, more then 255 characters ... Best regards ... such a folder artificially and found no method to subsequently access, ... command ...
    (microsoft.public.windows.server.general)
  • RE: Locating corrupt driver
    ... This article describes the functionality and limitations of the Windows ... Create and format partitions on drives. ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ...
    (microsoft.public.win2000.applications)
  • Re: Dim RetVal
    ... Looking in the folder there is a coed11.dat DAT file, the coed11 application, coed11.gdb GDB file ... The reason is that without the quotes, the command processor sees the ... In the command window, first type ... This *should* have exactly the same effect as the macro. ...
    (microsoft.public.word.vba.beginners)
  • Re: Batch Job
    ... You cannot use the 'del' command at a DOS prompt. ... files (since 'del' might not work into the special folder). ... while the above will delete the deleted files from the Recycle Bin but it also deletes configuration files used by the Recycle Bin. ...
    (microsoft.public.windowsxp.general)
  • Re: Running Package From EM and Scheduler Problem
    ... Spadak ... >> Everything runs fine from designer, after each execute new file is ... >> If there is no file in destination folder new is created but after ... >> Kind regards, ...
    (microsoft.public.sqlserver.dts)