Skip to content

A shell script that removes duplicate lines of text from a file.

License

Notifications You must be signed in to change notification settings

lexscher/dupeless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dupeless

A shell script that was built to remove duplicate lines/text from a file.

Add Dupeless to Path

  • Fork and Clone this repository

git clone git@github.com:<username>/dupeless.git

  • cd into the repository

cd dupeless

  • add the duplicate cleaner to your path by running the command:

./add_to_path.sh

Usage

  • To remove duplicates from any file(s), just run

dupleless <path/to/file.ext>

This can also clean multiple files at once, just pass it more file paths.

dupeless file1.ext file2.ext ./other/file.ext

Note

This uses some features that are only available with bash v4.0 and beyond.

We can run bash --version to see if we're up to date.

Not up to date, yet? Then we can run brew install bash, and we should be all set.

And we can always double check

$ bash --version
GNU bash, version 5.0.16(1)-release (x86_64-apple-darwin18.7.0)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

This blog post explains everything very well.

About

A shell script that removes duplicate lines of text from a file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages