This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Change to your Dropbox directory | |
cd ~/Dropbox | |
/usr/bin/dropbox status | |
# Find files modified in the last day and print their last modification time | |
find . -type f -mtime -1 -print0 | while IFS= read -r -d '' file; do | |
mod_time=$(date -r "$file" +"%Y-%m-%d %H:%M:%S") | |
time_ago=$(echo $(($(date +%s) - $(date +%s -r "$file")))) |