help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Check if file size greater than a small number?


From: Peng Yu
Subject: Check if file size greater than a small number?
Date: Wed, 9 Mar 2022 10:36:54 -0600

https://stackoverflow.com/questions/5920333/how-can-i-check-the-size-of-a-file-using-bash

I see things like the above that call an external program or cat all
the file content to check the size of a file.

But if my goal is just to know whether the file size is greater than a
smaller (say 40). What is the most efficient way to do so in bash?

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]