I have a file (using new line as a delimiter) that is at the moment storing each kind of information twice. Naturally, I would like to get rid of all duplicates. They come in bundles, so I was thinking of just reading out every second line using a loop and storing this in a new file.
My questions:
1. Is there a regular expression for "even number"/"uneven number"?
2. What is the code for "end of file"?
3. Is there a module that could do it (although I prefer to keep things simple)?
Thanks!
In reply to Even and uneven numbers as RegEx by New Novice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |