how to run linux command in rake file

Vamsi Krishna wrote:

hi all,

i need to grep a word count from a text file and i want to display the
count.
i need all the above in a rake file , i tried it by using

   today_count= system("grep -R 'time' oct_10.txt | grep -R 'hi' | wc
-l")
   puts "today count is :#{today_count}"

  but today_count returns 'true' instead of count.

  plz reply ASAP.

Thanks..
--vamsi.

Vamsi,
      I think here you using 'time' is a variable, instead of using that
variable try to append that var by using '<<'

--nan

How can I unsubscribe this?

Judy