TL;DR: man ascii, cal, xxd, ssh, mdfind
[deleted]
http://www.manpages.info/sunos/intro.1.html
Note the list of commands.
I guess you could ls /usr/bin and just start reading their man pages.
21–30 of 259 posts
TL;DR: man ascii, cal, xxd, ssh, mdfind
[deleted]
http://www.manpages.info/sunos/intro.1.html
Note the list of commands.
I guess you could ls /usr/bin and just start reading their man pages.
I want a command that counts files in a tree like du does sizes but without having to pipe find through wc which is crazy for hundred thousand files. Can't they just directly access inodes for high speed counting?
1. Both are operating systems
2. Both are conceptually simple.
3. There is always nice command that does what you want but you somehow forget it. I can't believe that Common Lisp has just 900+ symbols but I routinely forget some of them when programming.
$ cal | sed "s/.*/ & /;s/ $(date +%e) / [] /"
September 2013
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 [] 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30I want a command that counts files in a tree like du does sizes but without having to pipe find through wc which is crazy for hundred thousand files. Can't they just directly access inodes for high speed counting?
Available in most repositories, source code available at: http://mama.indstate.edu/users/ice/tree/
Example:
ssh username@host "echo $HOSTNAME && sudo somecommand && cat somecommand.log"
There's probably a better way to do this, but in a pinch I can fix a problem on dozens of machines just by altering the host string.
[1]: http://emacsredux.com/blog/2013/07/05/locate/ (setq locate-command "mdfind")
I want a command that counts files in a tree like du does sizes but without having to pipe find through wc which is crazy for hundred thousand files. Can't they just directly access inodes for high speed counting?
tree does this, don't know about suppressing the actual tree, but it tells you number of files and dirs printed at the end.
tree | egrep -o "[0-9]+ file(s|)"
edit: or you could just tail the output (should have thought of this first!) tree | tail -n1