Skip to content

Instantly share code, notes, and snippets.

@mthabsheer
Created January 11, 2020 04:41
Show Gist options
  • Save mthabsheer/514734e48f50fc7a6e6f025980fde333 to your computer and use it in GitHub Desktop.
Save mthabsheer/514734e48f50fc7a6e6f025980fde333 to your computer and use it in GitHub Desktop.
Linux file listing
Find files in between dates
find /path/to/folder -type f -name "file_name_starts_with*" -newermt 2020-01-07 ! -newermt 2020-01-08 -ls
Find and delete
find /path/to/folder -type f -name "file_name_starts_with*" -newermt 2020-01-07 ! -newermt 2020-01-08 -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment