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