This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Check if script is run as root | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "Please run as root" | |
| exit 1 | |
| fi | |
| # Common CD/DVD device locations | |
| DEVICE_LOCATIONS=( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def process_bonk_file(input_file="bonk.txt", output_file="bonk_fixed.csv"): | |
| try: | |
| with open(input_file, 'r') as f: | |
| lines = f.readlines() | |
| except FileNotFoundError: | |
| print(f"Error: Could not find {input_file}") | |
| return | |
| except Exception as e: | |
| print(f"Error reading file: {e}") | |
| return |
OlderNewer