When the file capacity is percent_val
and a specific capacity criterion is limit
, the command to find and output all files whose percent_val
is limit
or higher is
find ./* -size "$percent_val" >= "$limit"
Is this right?
And is the code below the command to delete the file with a specific capacity or more found capacity?
find ./* -size "$percent_val" >= "$limit" -type f -ls -exec rm -rf {} \;
Outputs a list of files from 100 mega to 200 mega from all directories in the workspace
find workspace -type f -size +100M -200M -exec ls -lh {} \;
Delete the above list files
find workspace -type f -size +100M -200M -exec rm -f {} \;
579 Understanding How to Configure Google API Key
575 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
620 GDB gets version error when attempting to debug with the Presense SDK (IDE)
925 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.