User Tools

Site Tools


linux:find

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux:find [2025/05/19 12:15] – [Recursively changing extension] Wufflinux:find [2026/06/10 09:30] (current) – [find examples] Wuff
Line 97: Line 97:
 </code> </code>
  
 +get the total filesize of specific find command:
 +<code>
 +find . -type f -not -iname "*.epub" -not -iname "*.mobi" -print0 | du --files0-from=- -hc | tail -n1
 +84M total
 +find . -type f -not -iname "*.epub" -not -iname "*.mobi" -exec du {} \; | awk '{ total += $1 }END{ print total }'
 +85864
 +
 +</code>
 ====== Replace spaces with underscores ====== ====== Replace spaces with underscores ======
 Mass replace spaces with underscores Mass replace spaces with underscores
linux/find.1747653359.txt.gz · Last modified: by Wuff