Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
How to move files from one dir to a
Name: nkbeet (by nk.mtnl) Date: June 17, 2008 at 08:54:29 Pacific OS: UNIX CPU/Ram: SERVER Product: IBM
Comment:
Dear Friends, I have a directory named tech, there are many files with *.uni extensions in this directory.The files with *.uni are continuously coming in tech directory.In tech directory, there is one directory named best. Now i want to move the files with *.uni extensions in this best directory. How can i do that. Please suggest a script in UNIX for this.
Name: nkbeet (by nk.mtnl) Date: June 18, 2008 at 00:12:39 Pacific
Reply:
Error "arguments too long" comes.
NAVIN KUMAR
0
Response Number 3
Name: nails Date: June 18, 2008 at 09:06:19 Pacific
Reply:
You must be trying to move a very large number of files to get a "arguments too long" error. Generally, you can get around the "arguments too long" problem by using a combination of the find/xargs command.
I see another potential problem with having directory "best" right below the current directory. The find command probably will probably find those "uni" files.
0
Response Number 4
Name: nkbeet (by nk.mtnl) Date: June 23, 2008 at 00:15:35 Pacific
Reply:
This also not worked.
nkbeet
0
Response Number 5
Name: nails Date: June 23, 2008 at 11:36:04 Pacific
Reply:
You'd get more help if you posted WHY it didn't work. Also, asking the same question in a different thread won't do you much good either.
Summary: Hi, I wrote a script that I use to convert files from one format to another so that I can ftp those files to our pc network. The script works fine when I have direct access our Unix box. However, when...
Summary: The proper way to do it, is to use tar to copy files from one directory to another: # all on oneline cd /home/mydir; tar cf - .|(cd /home/movehere; tar xf - ) You can also use cpio: # all on oneline c...
Summary: Hello -- I want to set up a login account that is used specifically to FTP files from one system to another. What should the directory permission be for the default directory be? The user should be a...