Today we'll discuss some scenarios in bash scripting.
Let's say I have a directory in my Linux driver name called movies. And I'm downloading a film from the torrent daily to relax. So in an average round, my machine would have a bottleneck of disk space. So I need to delete my old files which were downloaded past 2 days ago. And also I need to delete files and copy the name and date of the deleted files in a log file for my later check what has been deleted.
Note: take this just as an example and implement it in any kinda scenario.
Also, Discuss some of your thoughts in comments, if I'm wrong, suggest some best practices. Ideas are always welcome. Thanks in advance....