📜  如何查找零字节文件 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:07.541000             🧑  作者: Mango

代码示例1
ls -l | awk '{ if($5==0) print $9}' 

expalin :
 ls
-rw-rw----    1 nkumarachchi2019 nkumarachchi2019        0 Dec 15 16:47 jobs.cancel
$5 th column is zero bit 
if $5 is == 0 print $9 is file path

ls -lh human readable format