Robert Klemme wrote in post #1091597:
> On Tue, Jan 8, 2013 at 9:48 PM, Peter Bailey <lists / ruby-forum.com>
> wrote:
>>
>> I need to basically delete all of the files except for the first one,
>> the one with the "_1" suffix at the end. Can I do that wiith a
>> one-liner?
>
> ruby -r pathname -e 'Pathname.glob("*[^1].png").each(&:delete)'
>
> Kind regards
>
> robert

Thanks, Robert.

-- 
Posted via http://www.ruby-forum.com/.