A
Anil Maharjan
Guest
Hello all,
I want to transfer a file from one server directory location to another server into multiple directory location based on file name?
Lets say I have a list of file in with multiple file name having same ext.
\home\server1\File\20140827\
File1_A_20140827_01.unl
File1_A_20140827_02.unl
...
File2_B_20140827.unl
File2_C_20140827.unl
ans so on.
Now I need to transfer these files into another ftp location into multiple directory
\home\server2\File\
for files related to A
into \home\server2\File\A\20140827
mput *A*
for files related to B into
\home\server2\File\B\20140827
mput *B*
and so on for following days
into \home\server2\File\A\20140828
...
I can do this by manually but it's taking time to do this for day by day basis.
so, can anyone help me one this to write the shell script or some automation script to overcome with this .
Your help is much appreciated.
Thanks
Anil Maharjan
I want to transfer a file from one server directory location to another server into multiple directory location based on file name?
Lets say I have a list of file in with multiple file name having same ext.
\home\server1\File\20140827\
File1_A_20140827_01.unl
File1_A_20140827_02.unl
...
File2_B_20140827.unl
File2_C_20140827.unl
ans so on.
Now I need to transfer these files into another ftp location into multiple directory
\home\server2\File\
for files related to A
into \home\server2\File\A\20140827
mput *A*
for files related to B into
\home\server2\File\B\20140827
mput *B*
and so on for following days
into \home\server2\File\A\20140828
...
I can do this by manually but it's taking time to do this for day by day basis.
so, can anyone help me one this to write the shell script or some automation script to overcome with this .
Your help is much appreciated.
Thanks
Anil Maharjan