This is the output from a cool command I found on ones zeros majors and minors
history 1000 | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' \
| sort -rn | head
124 rake
106 svn
84 ss
36 cd
30 git
26 rm
26 ls
16 sc
10 mate
5 psql
How about you?
And, again from ozmm is the try command. I think I’m going to start adding this to my projects, seems really simple and helpful.
class Object
##
# @person ? @person.name : nil
# vs
# @person.try(:name)
def try(method)
send method if respond_to? method
end
end