- By Todd A. Jacobs: https://stackoverflow.com/a/12937971/3711707
This will give you a list of duplicate lines which you can then investigate further.
tr 'A-Z' 'a-z' < filename | sort | uniq -d
- Example Data File: numbers.txt
This will give you a list of duplicate lines which you can then investigate further.
tr 'A-Z' 'a-z' < filename | sort | uniq -d
| application: your-app-name | |
| version: 1 | |
| runtime: python27 | |
| api_version: 1 | |
| threadsafe: true | |
| default_expiration: "30d" | |
| handlers: | |
| # web files |
| /** | |
| * This algorithm originally written by Patrick Muff (dislick) for JS ES6. | |
| * https://gist.github.com/dislick/914e67444f8f71df3900bd77ccec6091 | |
| */ | |
| /** | |
| * Convert a semantic versioning string into a 32-bit integer. | |
| * | |
| * Make sure the input string is compatible with the standard found | |
| * at semver.org. Since this only uses 10-bit per major/minor/patch version, |