Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #2330
| From | Phillip Gawlowski <cmdjackryan@googlemail.com> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: Separate new lines from an output |
| Date | 2011-04-05 07:33 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <BANLkTik3T57GTbaPiOs30H8PQFicMAbCDg@mail.gmail.com> (permalink) |
| References | <d631fa1427d24cffc6f83fbb735b4c84@ruby-forum.com> <b17d892bf28996db2b491fa267c98dc5@ruby-forum.com> |
On Tue, Apr 5, 2011 at 12:38 PM, Leo M. <leo.mmcm@gmail.com> wrote: > Sorry for being imprecise. > > The matter is this : I have 87 files named black1, black2 ...... black > 87. > > I want ruby to print each file with the entire path, so, this is what > I've written : Why not use Dir#glob([pattern])? That automatically creates an array with the files and their paths that match [pattern]. -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Separate new lines from an output "Leo M." <leo.mmcm@gmail.com> - 2011-04-05 04:30 -0500
Re: Separate new lines from an output Robert Klemme <shortcutter@googlemail.com> - 2011-04-05 04:44 -0500
Re: Separate new lines from an output Haruka YAGNI <hyagni@gmail.com> - 2011-04-05 04:47 -0500
Re: Separate new lines from an output botp <botpena@gmail.com> - 2011-04-05 05:02 -0500
Re: Separate new lines from an output "Leo M." <leo.mmcm@gmail.com> - 2011-04-05 05:38 -0500
Re: Separate new lines from an output Peter Hickman <peterhickman386@googlemail.com> - 2011-04-05 05:59 -0500
Re: Separate new lines from an output Robert Klemme <shortcutter@googlemail.com> - 2011-04-05 07:54 -0500
Re: Separate new lines from an output Peter Hickman <peterhickman386@googlemail.com> - 2011-04-05 08:28 -0500
Re: Separate new lines from an output Peter Hickman <peterhickman386@googlemail.com> - 2011-04-05 08:29 -0500
Re: Separate new lines from an output Josh Cheek <josh.cheek@gmail.com> - 2011-04-05 06:36 -0500
Re: Separate new lines from an output Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-04-05 07:33 -0500
Re: Separate new lines from an output "Leo M." <leo.mmcm@gmail.com> - 2011-04-05 07:07 -0500
csiph-web