From: Alexey Petrushin Date: 2011-09-09T05:31:37+09:00 Subject: Re: SFTP grep on foreach There's a tiny wrapper over Net::SFTP that makes it as simple as this box = Box.new('cool_app.com') box['some/path'].files do |file| puts file.read if file.name =~ /(found|find)me/ end https://github.com/alexeypetrushin/vfs It also works with S3 and local FS (and You can copy/move dir/files from any source to any other) -- Posted via http://www.ruby-forum.com/.