A former sys admin placed this script on one of our boxes and it needs to be adjusted, but I'm not familiar with perl. Can someone help break this down for me? I'm particularly interested in the -mtime function. What's the time frame being referenced here.
It is kind of hard to answer a question like that without seeing the contents of /usr/local/src/files.txt , but the time range would be specified by the 2nd "field" in that file.
And, I'm not sure what output from rm -f is intended to be captured in /tmp/text.txt either. With -f there won't be any file not found errors, and even if there were, they would be written to stderr instead of stdout.
It might be better if those two lines were replaced by the single line: