Moving 1000s of files to another folder

Hi,

I need to move 1000s of files from one folder to another.
Actually there are 100K+ files.
Source dir : source1
Target dir : target1

Now if try cp or mv commands I am getting an error message : Argument List too long.

I tried to do it by the time the files are created in the source folder.

-rw-r--r-- 1 prod usr1 104 Dec 3 08:01 200912_011.txt

For example the above file we can see that files can be seggregated based on the timings - 08:01 > 1000 file
08:02 > 1000 file.
I can select the time from the ls -lrt command using awk '{print $8}'.

But not able to move files writing a command line. This is how I tried, any solution is welcome.

Thanks in advance.

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Proceed here:

http://www.unix.com/shell-programming-scripting/125297-mocing-100k-file-another-folder-using-1-command.html\#post302377502

Thank You.

The UNIX and Linux Forums.