From: Shai Rosenfeld Date: 2007-10-16T22:12:48+09:00 Subject: Re: How to remove "~" in those files > for sample1 records:(this is one file) > > LIN*EDIA000005*000000570*570~ > LIN*EDIA000006*000000570*570~ > LIN*EDIA000007*000000570*570~ // here i want to remove ~ in the looping > procees > use gsub ( http://www.ruby-doc.org/core/classes/String.html#M000832 ) with a pattern or whatever will suit u'r needs -- Posted via http://www.ruby-forum.com/.