A Python script to sort bibliography references alphabetically and remove duplicates.
This repository contains a Python script that reads a text file with bibliography references, sorts the references alphabetically, removes duplicates, and outputs the sorted references to a new file. Duplicate entries, if any, are printed to the console.
- Sort bibliography references alphabetically.
- Removes duplicate entries and prints them to the console.
- Handles errors such as empty input files or missing files.
- Python 3.x
- Clone the repository:
https://github.com/rishav21r/sort-bibliography.git
- Navigate to the repository directory:
cd sort-bibliography
- Place your bibliography text file (e.g., input.txt) in the repository directory.
- Run the script:
-
python sort_bibliography.py