what code do you have so far? On Thu, Aug 23, 2012 at 7:10 PM, Thomas Luedeke <[email protected]> wrote: > I cannot believe I'm having trouble with this - it should be utterly > trivial, but I just can't get Ruby to work correctly on this. > > I've got a directory with subdirectories that have names such as > "Eb97503.120822", where 97503 is a job submission number, and 120822 is > a time-date stamp. So the directory contents might look like this: > > Eb97503.120622 > Eb97504.120622 > Eb98537.120722 > Eb99659.120822 > > I want to pattern match the job submission number, and delete the > directories. I must have tried ten different ways of doing it using > strings set with the job submission number, but I just can't get it to > work. > > How the heck do I delete the middle two directories, once I have strings > set as: > > job1 = 97504 > job2 = 98537 > > This is embarrassing.... > > -- > Posted via http://www.ruby-forum.com/. >
-- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
