10-24-2009
thanks for suggestion but req is diff here...I have to move the files daily through a cron script.....your suggestion will work if I do once....
but If i do daily then I have to copy the files(and not the links which are created already)...so If I do tar and move the files in my new location I will get error as directory already exist....
I am working on a shell script whcih will create the exact directory structire in the new location, move the files and create a link to it....
by the time any new suggestions are appreciated....
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
Suppose i have a directory called
/home/rooh and I have an executable that writes to this directory.
the size of /home/rooh/logs is quite small and thus blows out of space.
I don't want to modify the executable but I want to create a link so that all the logs are moved there .
... (1 Reply)
Discussion started by: rooh
1 Replies
2. Shell Programming and Scripting
Any idea how to create a symbolic link...for example i want to create a symbolink link for a specific user in his profile to use the df command...?
Thanks in advance (9 Replies)
Discussion started by: charbel
9 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have installed vim 7 but I'm unsure how to point the 'vim' command to the new vim version rather than version 6.
Thanks in advance.
Michael (2 Replies)
Discussion started by: c19h28O2
2 Replies
4. Shell Programming and Scripting
I have a security system that FTPs the camera files to my machine, however I want to sort the pictures (taken every 30s) into directories by hour.
Every picture uses the following file format.
yymmddhhmmsstt.jpg (where tt is the milliseconds)
I am thinking the for loop is best
for file... (11 Replies)
Discussion started by: Kiint
11 Replies
5. Shell Programming and Scripting
I have list of files named file_username_051208_025233.log. Here 051208 is the date and 025233 is the time.I have to run thousands of files daily.I want to put all the files depending on the date of running into a date directory.Suppose if we run files today they should put into 05:Dec:08... (3 Replies)
Discussion started by: ravi030
3 Replies
6. Solaris
Hi,
I use to access a file on remote server. Can I create a link for this file present on remote server on my local server, if yes then please let me know.
Thanx in advance. (7 Replies)
Discussion started by: sanjay1979
7 Replies
7. UNIX for Dummies Questions & Answers
Hi,
# mkdir usr3
# ls -l /h/uxossolbld10/0/teamcity/agent
total 8
drwxrwxr-x 14 test1 rdl 512 Nov 30 02:54 conf
drwxrwxr-x 3 test1 rdl 512 Jun 24 14:21 scripts
drwxrwxr-x 10 test1 rdl 512 Jun 3 2011 teamcity
drwxrwxr-x 4 test1 ... (1 Reply)
Discussion started by: Divakar
1 Replies
8. Shell Programming and Scripting
How can I create a hard link to a file, then rename the hard link to a different name? (2 Replies)
Discussion started by: fhill2
2 Replies
9. Shell Programming and Scripting
how can i move "dataName".sql.gz into a folder called 'database' and then move "$fileName".tar.gz * .htaccess into a folder called 'www' with the entire gzipped file being "$fileName".tar.gz? Is this doable or overly complex.
so
mydemo--2015-03-23-1500.tar.gz
> database
-... (5 Replies)
Discussion started by: wyclef
5 Replies
10. Shell Programming and Scripting
Hello all,
On a Solaris box, I am trying to move the target of a symbolic link.
Let's say the symbolic link looks like the following:
/dir1/dir2/link -> /some/dir/target
I would like to know of a simple way to move the target of the symbolic link and not the link itself. I'd like to move... (4 Replies)
Discussion started by: ejianu
4 Replies