-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_usage.sh
More file actions
executable file
·30 lines (24 loc) · 868 Bytes
/
example_usage.sh
File metadata and controls
executable file
·30 lines (24 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
echo "=== JDU - JSON/JSONL Disk Usage Analyzer Examples ==="
echo ""
echo "1. Basic JSON analysis:"
echo " jdu analyze test.json"
echo ""
cargo run -- analyze test.json 2>/dev/null | grep -A 15 "Analysis complete"
echo ""
echo "2. JSONL analysis with duplicate detection:"
echo " jdu analyze test_duplicates.jsonl"
echo ""
cargo run -- analyze test_duplicates.jsonl 2>/dev/null | grep -A 15 "Analysis complete"
echo ""
echo "3. Interactive TUI mode:"
echo " jdu analyze test.jsonl --interactive"
echo " (Launches terminal UI for navigation)"
echo ""
echo "4. File type auto-detection:"
echo " jdu analyze test.jsonl --file-type auto"
echo " (Auto-detects based on file extension)"
echo ""
echo "5. Explicit file type specification:"
echo " jdu analyze data.txt --file-type jsonl"
echo " (Useful for files without standard extensions)"