From: Markus Schirp Date: 2011-03-11T23:56:37+09:00 Subject: Re: universal symbol Hi, You are speaking about "shell globbing", you can use Dir.glob or its alias Dir[] like this: Dir.glob("*") Dir["*"] On Fri, Mar 11, 2011 at 11:36:18PM +0900, vahag vardanyan wrote: > HI > > I just can't explain in English what I want , so there is example > > in Unix the * symbol can replace the all sybmbols in string > > file111 > file112 > file113 > file114 > file115 > > find file* #=> > > file111 > file112 > file113 > file114 > file115 > > how can I do it in ruby > my example is > while(line=f.gets(sep="class#{i} here will be any text ")) > ... > ... > i+=1 > end > > -- > Posted via http://www.ruby-forum.com/.