Bash: testing if a file exists, has content, and is recently modified
If you need to test for a file’s existence, content size, and whether it was recently modified, the ‘find‘ utility can provide this functionality in a single call. One scenario for this usage might be the cached results from a remote service call (database, REST service, etc). If fetching these results was a relatively costly … Bash: testing if a file exists, has content, and is recently modified