01 Mar '14, 5am

Recursive file listening??? - Ruby Forum:

On 9/7/2011 08:43, Andrius C. wrote: > "first_level/second_level/file". Did you actually test this? I did, and here is what I got: jeremyb@JEREMYB ~/tmp/test $ mkdir -p first_level/second_level jeremyb@JEREMYB ~/tmp/test $ touch file.rb first_level/file.rb first_level/second_level/file.rb jeremyb@JEREMYB ~/tmp/test $ find . . ./file.rb ./first_level ./first_level/file.rb ./first_level/second_level ./first_level/second_level/file.rb jeremyb@JEREMYB ~/tmp/test $ ruby -e 'puts Dir.glob("**/*.rb").join("\n")' file.rb first_level/file.rb first_level/second_level/file.rb The meaning of ** in the glob means to match any and all intervening directories at that point in the pattern. Can you explain why you think that is not the case? -Jeremy

Full article: https://www.ruby-forum.com/topic/164630

Tweets

Do you maintain a swipe file?... '7 Swipe File Tools' #swipefile #creativity

Do you maintain a swipe file?... '7 Swipe File ...

searchenginepeople.com 01 Mar '14, 10pm

Three years ago, if you had asked me what a swipe file is , I probably would have replied with something like this: "Umm…d...

TiddlyWiki:

tiddlywiki.com 08 Mar '14, 7am

“[Ruby 1.9 - Feature #4592][Open] Tempfileを直接保存...

ruby-forum.com 08 Mar '14, 1am

Issue #4592 has been updated by mame (Yusuke Endoh). Description updated Status changed from Open to Assigned Assignee set...

via @rubymonk

via @rubymonk

rubymonk.com 01 Mar '14, 5am

Experience dynamic power. You've learned the basics of writing code with code in Metaprogramming Ruby. Now take it to the ...

1.2m taxpayers won’t need to file returns #IRAS...

cpf.gov.sg 03 Mar '14, 7am

MORE taxpayers, including 15,000 first-timers, stand to gain from the No-Filing Service (NFS) that starts today. About 1.2...

We're sponsoring the @rubyrogues podcast this m...

rubyrogues.com 01 Mar '14, 1pm

Jim and I had quite a rivalry over the years because I wrote the TextMate book and he was such a big Emacs fan, a die-hard...