> This line:
> 
>>>     if /%!PS-Adobe/ =~ IO.open(file) {|f| f.gets}    
> 
> opens the file, gets the first line, closes the file, and checks the 
> line against the regex for a match.  If there is a match, this code 
> executes:
> 
>>>       File.rename(file, file + ".eps")
>>>     end
> 
> That line renames the file.

> What more do you want to do?

I want to rename the file(s), and, that's what's not working. I'm
getting file permission errors.
-- 
Posted via http://www.ruby-forum.com/.