/sort-bibliography

A Python script to sort bibliography references alphabetically and remove duplicates.

Primary LanguagePythonMIT LicenseMIT

Sort Bibliography

A Python script to sort bibliography references alphabetically and remove duplicates.

Description

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.

Features

  • Sort bibliography references alphabetically.
  • Removes duplicate entries and prints them to the console.
  • Handles errors such as empty input files or missing files.

Requirements

  • Python 3.x

Usage

  1. Clone the repository:
    https://github.com/rishav21r/sort-bibliography.git
    
  2. Navigate to the repository directory:
    cd sort-bibliography
  3. Place your bibliography text file (e.g., input.txt) in the repository directory.
  4. Run the script:
  5. python sort_bibliography.py