1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
n1jos e9b5456b5a add csv to json python script 2026-05-29 20:18:51 +02:00
n1jos 6e3a58117c update readme 2026-05-29 20:18:41 +02:00
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ My personal dotfiles, shell scripts, and system configurations.
| Folder | Description |
|---|---|
| `fastfetch/` | Fastfetch configs and ascii art |
| `scripts/` | General purpose shell scripts |
| `scripts/` | General purpose shell scripts, python scripts, ... |
| `scripts/gum/` | Interactive shell scripts using Gum |
| `vscodium/` | VSCodium settings |
| `zsh/` | Zsh config |
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env python3
import csv, json, sys
if len(sys.argv) != 3:
print("Usage: csv_to_json <input.csv> <output.json>")
sys.exit(1)
with open(sys.argv[1]) as f:
data = list(csv.DictReader(f))
with open(sys.argv[2], 'w') as f:
json.dump(data, f, indent=2)