Advertisement
Guest User

Untitled

a guest
May 18th, 2015
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. diuneigh@diuneigh:~$ #!/bin/bash
  2. diuneigh@diuneigh:~$ # count_em - count files in all subdirectories under current directory.
  3. diuneigh@diuneigh:~$ echo 'echo $(ls -a "$1" | wc -l) $1' >/tmp/count_em_$$
  4. bash: /tmp/count_em_12594: No space left on device
  5. diuneigh@diuneigh:~$ chmod 700 /tmp/count_em_$$
  6. chmod: cannot access ‘/tmp/count_em_12594’: No such file or directory
  7. diuneigh@diuneigh:~$ find . -mount -type d -print0 | xargs -0 -n1 /tmp/count_em_$$ | sort -n
  8. xargs: /tmp/count_em_12594: No such file or directory
  9. diuneigh@diuneigh:~$ rm -f /tmp/count_em_$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement