Skip to content

Instantly share code, notes, and snippets.

@fegue
Last active May 3, 2021 09:23
Show Gist options
  • Save fegue/1cc6ad9e6573f5b48e5150508f280598 to your computer and use it in GitHub Desktop.
Save fegue/1cc6ad9e6573f5b48e5150508f280598 to your computer and use it in GitHub Desktop.
[Last modified files]Recursively find newest/last modified files in directory and print them to terminal #linux, #bash, #backup,#nextcloud
#!/bin/bash
find /mnt/ncp-backup/backup-current/OekoFor -type f -printf "%T+\t%p\n" | sort | tail -10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment