Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Would it be possible to create an if command for %s to divide by factors of 8 depending on the size e.g. 8bit = 1byte and so on?
    – zerberus
    Commented Feb 23, 2023 at 13:05
  • @zerberus As per this Q&A, unfortunately it doesn't seem possible to teach find that trick. You could post-process the output and pipe it through numfmt, but that would somewhat defeat the purpose of using the find command in the first place (i.e. not having to post-process output that may contain unusual characters in the file names).
    – AdminBee
    Commented Feb 23, 2023 at 13:30