Get up and running in 5 minutes! Create your first custom sock pattern now.
chmod +x sock_pattern_generator.shsh -n sock_pattern_generator.shIf you see no errors, you're good to go! ✅
./sock_pattern_generator.sh(Takes ~2-3 minutes, just follow along!)
Preview your pattern, make any edits, then save it
./sock_pattern_generator.shYou'll be guided through a friendly, step-by-step process with clear prompts and automatic screen clearing between sections. Total time: ~2-3 minutes to generate a complete pattern!
This invokes the friendly, step-by-step process. Total time: ~2-3 minutes to generate a complete pattern!
| Requirement | Details |
|---|---|
| 🖥️ System | Any Unix-like system (Linux, macOS, WSL) |
| 🐚 Shell | POSIX-compliant (sh, bash, zsh, etc.) |
| 🛠️ Tools | awk, clear, printf (usually pre-installed) |
| 📦 Dependencies | None! |
Here's what happens when you run the script:
1. 🦶 Foot Size
Choose shoe size or enter custom dimensions
2. 📊 Gauge Swatch
Enter stitches/rows per inch, stitches/rows per given number of centimeters, or enter customer measurments
3. 🎨 Pattern Choices
Pick leg style, cuff ribbing, toe type, heel construction
4. 📏 Measurements
Leg length, cuff length
5. 🧶 Yarn Details (Optional)
Brand, line/weight, color (all fields can be left blank)
6. 🪡 Needles
Size and working method (DPNs, Magic Loop, Circulars)
7. 👀 Review
Check everything looks good
8. ✏️ Edit (Optional)
Change anything without re-entering everything
9. 📖 Generate
Pattern created instantly!
10. 💾 Output
Display on screen, save to file, or both
| File | Purpose |
|---|---|
| sock_pattern_generator.sh | 🎯 Main script - Run this to generate patterns |
| README.md | 📖 Full documentation & features |
| API_REFERENCE.md | 📚 For developers & technical details |
| BACKEND_INTEGRATION.md | 🌐 Web backend conversion guide |
| QUICKSTART.md | 🚀 This file! |
✓ Always make a in-the-round swatch in your actual yarn ✓ Measure in the center (edges are unreliable) ✓ Different yarns = different gauges (even same weight!) ✓ Spend 5 minutes here to save hours of frustration later
✓ Knit a small swatch of each section (cuff, leg, toe) ✓ Try on as you go ✓ Better to adjust early than unravel a whole sock!
chmod +x sock_pattern_generator.shTry running with sh explicitly:
sh sock_pattern_generator.shCheck if awk is available:
which awkInstall if needed: available from most package managers as "gawk"
- Double-check your gauge measurement
- Double-check you've selected the correct measurment units (Imperial inches vs metric centimeters)
- Measure in the center, not edges
- Try knitting a fresh swatch if unsure
Check permissions:
ls -ld .- 📖 Full docs → See README.md
- 🏗️ Technical → Check API_REFERENCE.md
- 🌐 Backend? → Read BACKEND_INTEGRATION.md
See BACKEND_INTEGRATION.md for guidance on:
- Adding new heel/toe techniques
- Building a web interface
- Contributing enhancements
./sock_pattern_generator.shHave fun creating beautiful custom socks! 🧶✨
Questions? Read the full README