Home > Back-end >  How to show only files that are larger than 2000 on bash in one line?
How to show only files that are larger than 2000 on bash in one line?

Time:02-12

How to show only files that are larger than 2000 on bash in one line?

[gooder@GOD]$ find videos/ -type f -printf '%k %p\n' |sort -n |tail -n 20
1760 videos/0-2GBou1t.mp4
1500752 videos/0-2GBout.mp4
2291528 videos/0-2GB1.mkv

CodePudding user response:

Assuming you mean 2000 bytes.

find videos/ -type f -size  2000c
  •  Tags:  
  • bash
  • Related