[Tool Name] Mastery Reference
Progressive reference for [tool] — from survival commands to advanced patterns.
Survival Kit (Top 10)
| # | Command |
|---|---|
1 |
|
2 |
|
3 |
|
Basics
[Core Operation 1]
# Pattern with explanation
[tool] '[basic pattern]' file.txt
[Core Operation 2]
# Pattern
Field Processing
# Extract specific fields
[tool] -F'[delimiter]' '{print $1, $3}' file.txt
Real-world example: Parse log files
# Extract timestamps and error messages from syslog
[tool] '/ERROR/ {print $1, $2, $3, substr($0, index($0,$6))}' /var/log/syslog
Pattern Matching
Simple patterns
# Match lines containing pattern
Regex patterns
# Extended regex
Range patterns
# From pattern A to pattern B
Data Transformation
Substitution
# Replace pattern
Reformatting
# Restructure output
Aggregation & Counting
# Count occurrences
# Sum values
# Unique values
Multi-file Operations
# Process multiple files
Combining with Other Tools
[tool] + grep
# Pipeline pattern
[tool] + sort + uniq
# Pipeline pattern
[tool] + xargs
# Pipeline pattern
Infrastructure Patterns
Log analysis
# Parse ISE logs / syslog / auth.log
Network data
# Parse IP tables, ARP, routing
Certificate inspection
# Parse openssl output
Gotchas & Traps
| Trap | Explanation |
|---|---|
[Common mistake 1] |
[Why it fails and what to do instead] |
[Common mistake 2] |
[Why it fails and what to do instead] |
Cheat Sheet
| Category | Pattern | Description |
|---|---|---|
Basics |
|
[What it does] |
Intermediate |
|
[What it does] |
Advanced |
|
[What it does] |
Drill Exercises
Drill 1: [Task description]
# Solution
Drill 2: [Task description]
# Solution
Drill 3: [Task description]
# Solution