Advertisement
homer512

stat -f filter

Mar 5th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. stat -f --printf "%i\t%n\n" /local/lxc/* |
  4.     grep "$(stat -f --printf "^%i\t" /local/lxc)" |
  5.     cut -f2 |
  6.     tr '\n' '\0' |
  7.     du -hsx --files0-from=-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement