# How to remove "~" in those files

**URL:** <https://www.ruby-forum.com/t/how-to-remove-in-those-files/117246>\
**Category:** Rails\
**Created:** [October 15, 2007, 9:19am UTC](https://www.ruby-forum.com/t/how-to-remove-in-those-files/117246 "2007-10-15T09:19:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vidyagayathri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ba9def/32.png) [@vidyagayathri](https://www.ruby-forum.com/u/vidyagayathri)\
**Post date:** [October 15, 2007, 9:19am UTC](https://www.ruby-forum.com/t/how-to-remove-in-those-files/117246/1 "2007-10-15T09:19:10Z")

</div>

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)

LIN_EDIA000005_000000570_570~  
LIN_EDIA000006_000000570_570~  
LIN_EDIA000007_000000570\*570~ // here i want to remove ~ in the looping  
procees

sample 2:

LIN_EDIA000008_000000570_570~  
LIN_EDIA000009_000000570_570~  
LIN_EDIA000002_000000570\*570~ // here i want to remove ~ in the looping  
procees

---

<div class="post-metadata">

**Author:** ![vidyagayathri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ba9def/32.png) [@vidyagayathri](https://www.ruby-forum.com/u/vidyagayathri)\
**Post date:** [October 15, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/how-to-remove-in-those-files/117246/2 "2007-10-15T14:35:45Z")

</div>

You should seriously consider reading  
[http://whytheluckystiff.net/ruby/pickaxe/](http://whytheluckystiff.net/ruby/pickaxe/)

And this question is suited for ruby-lang

On 10/15/07, Vidya V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ## LIN_EDIA000006_000000570\*570~
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Cheers!

- Pratik  
[http://m.onkey.org](http://m.onkey.org)
