* 7stud -- <dolgun / excite.com> (01:57) schrieb:

> if /%!PS-Adobe/ =~ File.open {|file| f.gets}
>     File.rename(file, "#{file}.eps")

This is not C or Python, Ruby needs an end.

Or a one-liner:

| File.rename(file, "#{file}.eps") if /%!PS-Adobe/ =~ File.open {|file| f.gets}

mfg,                   simon .... l