0

Now I find that wc -c could show the size of file, then how to select them and list them? It should be a single pipeline of commands.

Rui F Ribeiro
  • 56,709
  • 26
  • 150
  • 232

1 Answers1

3

find will be better:

find . -type f -size +9999999c

Replace . with the directory.

  • Modified to also print the file sizes in bytes and sorted by file size (largest files first): find . -type f -size +9999999c -print0 | xargs -0 du -b | sort -nr – Freddy Feb 11 '19 at 15:16