Hi Friends,
Can you please help me a writting a script.
File1 has the following text:
0 0,12 * * * /home/app/cr_colat/cdtdev/bin/SendNoti.sh -c
File2 has the following text
0 0,12 * * * /home/app/cr_colat/cdtdev/bin/SendNoti.sh -c
6 0,12 * * * /home/app/cr_colat/cdtdev/bin/SendNoti.sh -c
I want file1 to append to file2 if and only if file1 text is not already present in file2 ( file1 has to check file2 and if the file1's text not available in file2 it has to append to file2)
Please help
Can you please help me a writting a script.
File1 has the following text:
0 0,12 * * * /home/app/cr_colat/cdtdev/bin/SendNoti.sh -c
File2 has the following text
0 0,12 * * * /home/app/cr_colat/cdtdev/bin/SendNoti.sh -c
6 0,12 * * * /home/app/cr_colat/cdtdev/bin/SendNoti.sh -c
I want file1 to append to file2 if and only if file1 text is not already present in file2 ( file1 has to check file2 and if the file1's text not available in file2 it has to append to file2)
Please help