wyatt8740

Untitled

Jun 18th, 2016
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. # one-liner in bash to list all man pages under the current dir and print the number total at the bottom.
  2. # this prints to stderr for the filenames and stdout for the total count.
  3. echo "There are $(cut -d ' ' -f 1 <(wc -l <(tee /dev/stderr < <(find ./man*/ -type f)))) man pages available."
Advertisement
Add Comment
Please, Sign In to add comment