hello ! i have to comment a link in lots html pages of a static site (with tables everywere ) : with my little ruby script : <pre> while get gsub(/(<td.*agenda.*\/td>)/, '<!-- \1 -->') print end </pre> it ok , but when i try try with command line : <pre>cat file.html | ruby -pe 'gsub(/(<td.*agenda.*\/td>)/, '<!-- \1 -->')'</pre> i got a error : <pre>e:1:in `gsub': can't convert Fixnum into String (TypeError) from -e:1 </pre> anybody can tell me why ?? (sorry for my bad english) -- Posted via http://www.ruby-forum.com/.