Sort files updated within the period specified by the find command in order of size

How to use

--When investigating the server, I want to see the largest file in a certain period. --ex. The server capacity suddenly increased, but I investigated which file was the cause, etc.

command

find . -type f -newermt "2020-08-31 00:00:00" -a ! -newermt "2020-09-05 23:59:59" -printf "%p %s" | sort -k 2,2

Commentary

reference

[Linux] Find files updated within the date range specified by the find command [Search for the corresponding file by specifying the date and time in the reverse UNIX command / find](https://linux.just4fun.biz/?%E9%80%86%E5%BC%95%E3%81%8DUNIX% E3% 82% B3% E3% 83% 9E% E3% 83% B3% E3% 83% 89 / find% E3% 81% AB% E6% 97% A5% E6% 99% 82% E3% 82% 92% E6% 8C% 87% E5% AE% 9A% E3% 81% 97% E8% A9% B2% E5% BD% 93% E3% 81% 99% E3% 82% 8B% E3% 83% 95% E3% 82% A1% E3% 82% A4% E3% 83% AB% E3% 82% 92% E6% A4% 9C% E7% B4% A2% E3% 81% 99% E3% 82% 8B # i551bc2b) newerXY option to search by specific date and time with find Detailed summary of sort command [Linux command collection] sort command (sorts text files)

Recommended Posts

Sort files updated within the period specified by the find command in order of size
Sort tuple list in Python by specifying the ascending / descending order of multiple keys
Sort the string array in order of length & Japanese syllabary
Command to list all files in order of file name
Sort the file names obtained by Python glob in numerical order
Test & Debug Tips: Create a file of the specified size in Python
I want to sort a list in the order of other lists
[linux] Split files to the specified size
Migemo version of the: find command,: mfind
Divides the character string by the specified number of characters. In Ruby and Python.
Get Unix time of the time specified by JST regardless of the time zone of the server in Python
[Python] Sort the list of pathlib.Path in natural sort
Change the font size of the legend in df.plot
Sort the elements of the array by specifying the conditions
Find the number of days in a month
Find the divisor of the value entered in python
Find the solution of the nth-order equation in python
The story of viewing media files in Django
Search by the value of the instance in the list
Sort list elements in a specified order in Python
Gradually display the output of the command executed by subprocess.Popen
○○ Solving problems in the Department of Mathematics by optimization
Get the size (number of elements) of UnionFind in Python
About the uncluttered arrangement in the import order of flake8
Understand the attributes of Linux files (ls -l command)
Python> Get a list of files in multiple directories> Use glob | Sort by modification time
[Python] Programming to find the number of a in a character string that repeats a specified number of times.