On Tue, Feb 21, 2012 at 9:57 AM, jcbollinger <john.bollin...@stjude.org> wrote: > Alternatively, > > `yum -q check-update | grep '\\w' | wc --lines`.chomp
Yep, lots of ways to do it. > sudo is not needed to run yum queries, and avoiding sudo when you > don't need it is good practice. Personally, I find that command a lot Good point. I was testing in irb as a regular user and just cut and paste what I did into the email. It shouldn't have sudo in there. > more legible than the Ruby split / reject / length business, too, > though YMMV. I think method chaining and the functional aspects (reject) of Ruby are elegant and use them every chance I get. Both are fine and valid though. -- Nathan Powell Linux System Administrator "Where else would you rather be than right here, right now?" ~ Marv Levy -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.