06-08-2016
2,
0
Join Date: Jun 2016
Last Activity: 4 July 2017, 8:43 AM EDT
Posts: 2
Thanks Given: 0
Thanked 0 Times in 0 Posts
Help me with script
Hello to all,
I have a folder containing several files user1.pop user2.pop and a folder containing the user's home directory, /home/user1 /home/user2.
Each .pop file contains a lastlogintime string, as follows <LastLoginTime> 05/04/2016 13:18:52 </ LastLoginTime>.
I would like to make a daily check and delete .pop files older than 8 months and folders for those users.
How can I do? My system is ubuntu.
Thank you