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
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
   puts "today count is :#{today_count}"

  but today_count returns 'true' instead of count.

  plz reply ASAP.


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


How can I unsubscribe this?