Re: How to set the default ruby version?

2012-02-09 Thread weimen
于 2012-1-18 21:05, shiyao.ma 写道: I now prefer to use ruby1.9. However, debian sid's default ruby version is 1.8.x. I deleted the soft link of /usr/bin/ruby and made a new soft link /usr/bin/ruby to /usr/bin/ruby1.9.3. I thought that's enough, however I found it is not feasible. I have to update

Re: which is the best command to use

2012-01-05 Thread weimen
于 2012-1-4 19:26, Wilko Fokken 写道: On Tue, Dec 27, 2011 at 08:57:55PM +0800, lina wrote: Hi, I have two questions, wish to get advice, Question 1: For a series of files: cat a_*.o* | grep "WARNING" some file like a_1.o12 has WARNING, but others does not have WARNING How can I let grep ret

Re: something regards "find"

2011-12-30 Thread weimen
于 2011-12-30 12:04, lina 写道: Hi, I don't know how to find one file out, one file contains some numbers, like 7.9 2.4 4.2 12.2 and etc I can't remember the file name. I tried: $ grep -e "7.9" -e "2.4" -e "4.2" -e "12.2" */* $ grep -e "7.9" -e "2.4" -e "4.2" -e "12.2" */*/* not work, Thanks