Your Ad Here

Posted By

Ragnis on 05/14/11


Tagged

grep du


Versions (?)

Display only current directory contents using `du`


 / Published in: Bash
 

It makes linux du command to show only children of current directory. You have to replace TAB with actual tab character. In terminal you can get it by pressing <ctrl-v><tab>.

  1. du -h | grep "^[0-9A-Z. ]*[TAB]*\./[.a-zA-Z0-9_ -]*$"

Report this snippet  

You need to login to post a comment.