How to remove "~" in those files

Hi all,

How to remove at end of the record “~”, i am trying this, but i
couldn’t remove, please let me know if any body knows.
for example , i have 2 files name sample1, sample2,

for sample1 records:(this is one file)

LINEDIA000005000000570570~
LIN
EDIA000006000000570570~
LINEDIA000007000000570*570~ // here i want to remove ~ in the looping
procees

sample 2:

LINEDIA000008000000570570~
LIN
EDIA000009000000570570~
LINEDIA000002000000570*570~ // here i want to remove ~ in the looping
procees

You should seriously consider reading
http://whytheluckystiff.net/ruby/pickaxe/

And this question is suited for ruby-lang

On 10/15/07, Vidya V. [email protected] wrote:

LINEDIA000006000000570*570~

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


Cheers!