Hi All,
[LEFT]I need to find and list the last 5 days files in that exact name with "MIM" and copy to another directory.
please help me in this there is around 30000 files
[/LEFT]
Thanks
Murali
Hi All,
[LEFT]I need to find and list the last 5 days files in that exact name with "MIM" and copy to another directory.
please help me in this there is around 30000 files
[/LEFT]
Thanks
Murali
Let's start with finding the files. This finds filee with the EXACT name "MIM". I'm not sure that was what you meant. I assume the MIM files are in some directory tree, let's call it "start"
find /start -name 'MIM' -exec ls {} \;
Thanks for your reply
I have excuted the below command as below and got below error
find /start -name 'MIM_110' -exec ls {} \;
find: 0652-019 The status on /start is not valid.
I need these files copy to anohter palce
please help me in this,this is bit urgent
/start means give the path, where you want to search
yes i given,not listing any files
---------- Post updated at 09:54 AM ---------- Previous update was at 09:49 AM ----------
I tried as below,its not copying
find /path -name 'MIM_110' -exec cp -r {} /tmp/MIM \;
Where are the files located - what is the FULL name of one MIM file:
# short name
MIM
# full name - the directory names are pretend, they will be different on your machine
/somedirectory/data/Sunday/MIM
If they are all over everywhere use / the root directory.
find / -name MIM
The files are in the one directry only but the file name is lengthy as below and diffrent each other
these files format as below
MIM_110_00000000023_8533.txt.00000000034.txt
MIM_110_00000000024_8533.txt.00000000035.txt
.
.
.
.
find /path -name 'MIM_110*' -exec cp -r {} /tmp/MIM \;