Hi,
To Archive files, I try to move files from one directory to another directory . So i used the below logic,
Code:
#!/bin/ksh
****Archive*****
mv ${DATA_DIR}/ABC_.dat ${ARCHIVE}
So if i give the complete file name its working fine.
Hi,
need to zip all files in a directory and move to another directory after the zip..
i am using this one but didnt help me...
Code:
zip -r my_proj_`date +%Y%m%d%H%MS`.zip /path/my_proj
mv in_proj_`date +%Y%m%d%H%M%S`.zip /path/source/
i am trying to zip all the files in my_proj directory with the timestamp appened to it and after the zip trying to move to source directory..
the above c
Is there a way to move a file from a directory to another and then cd into the latter in one command? Something like mv /a/file /another/dir && cd _ but without typing second time the directory path.
I would like to copy a set of files from directory A to directory B, with the caveat that if a file in directory A is identical to a file in directory B, that file should not be copied (and thus its modification time should not be updated).
Hi All,
I am currently coding for a requirement(LINUX OS) where I am supposed to move a file (Lets Call it Employee.txt) from Directory A to Directory B based on 2 date fields as below,
Date_Current = 20120620
Date_Previous = 20120610
Source Directory : /iis_data/source
Target Directory : /iis_data/destination
Files available in Directory:
20120609_Employee.txt
20120612_Employee.txt
201206
there was a post previously about this from around 2010
but i was unable to get the suggested scripts there to work.
the following code works for me when it's saved inside the
directory of files whose names i want to shorten, but i would
like to be able to store it in a file with a list of
directories and have it enter into each directory, shorten the
file names in that directory, and t
Hi ,
i have some files of specific pattern ...i need to look for files which are having size greater than zero and move those files to another directory..
Ex...
abc_0702,
abc_0709,
abc_782
abc_1234 ...etc
need to find out which is having the size >0 and move those to target directory..
Thanks in advance..
Siva Santosh
I have to copy the file from my desktop to my mounted directory. I was using the following command to copy the file from my desktop to mounted directory.
os.system("cp -f /home/Desktop/filename /media/folder_1").
It works fine.
Code:
flamingo:~ joliver$ sudo find / -nogroup
find: /dev/fd/4: No such file or directory
find: /home: No such file or directory
find: /Library: No such file or directory
find: /net: No such file or directory
find: /Network: No such file or directory
find: /private: No such file or directory
find: /sbin: No such file or directory
find: /System: No such file or directory
find: /Users: No such