https://github.com/royborgen/rmdups
A Python script that reads a file, removed duplicate lines and outputs results.
https://github.com/royborgen/rmdups
Last synced: over 1 year ago
JSON representation
A Python script that reads a file, removed duplicate lines and outputs results.
- Host: GitHub
- URL: https://github.com/royborgen/rmdups
- Owner: royborgen
- Created: 2020-08-20T20:46:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-20T21:02:53.000Z (almost 6 years ago)
- Last Synced: 2023-10-20T22:53:58.173Z (almost 3 years ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rmdups 1.0 - Remove duplicates
A Python script that reads a file, removed duplicate lines and outputs results.
## Usage
The script needs a filename as argument
```
Usage: rmdups [FILENAME]
Reads a file and removes duplicate lines.
Filename must be provided as argument.
Optional arguments:
-v, --version Displays version information and exits
--help Displays this helptext
Example:
rmdups test.txt Reads test.txt and removes duplicate lines
```
## Example
Let's say we provide a file with the following content as argument:
```
Fred
Jeff
Jeff
Jeff
Lisa
Lisa
Bobby
```
Script will output:
```
Fred
Jeff
Lisa
Bobby
```
## Requirements
- Python 3
- os library installed (standard with Python 3)
- sys library installed (standard with Python 3)