I have test1 and test2 directories in /home/user/scripts. test1 and test2 contains the logs. i wanted to delete the logs files from these 2 directories using crontab.
i know how to delete the files from one directory.
30 18 * * * rm /home/user/scripts/test1/* <-- this will delete the files from test1. but test2 dir is also in the same location. how do i delete test2 files in the same crontab
i tried the following but no luck, can someone help me pls?
30 18 * * * rm /home/user/scripts/test1/; rm /home/user/scripts/test2/