Bash Log Archive and Cleanup | Dataford Interview Questions
Bash Log Archive and Cleanup
MediumArraysStringsSorting
Problem
Write a Bash script that searches a directory for log files older than 30 days, archives them, and deletes the originals, ensuring it logs its own success or failure.
Problem
Write a Bash script that searches a directory for log files older than 30 days, archives them, and deletes the originals, ensuring it logs its own success or failure.
Your answer
Try one AI text evaluation on us
Get structured feedback, scored against a 4-axis rubric. Premium unlocks unlimited.