This document describes how to use tips.sh — a command-line utility for storing and managing tips or notes in a structured format.
Each record contains the following 12 fields, separated by <>:
./tips.sh [OPTIONS] [ARGUMENT]
| Option | Function | Usage Example |
|---|---|---|
| -a | Add a new tip record | ./tips.sh -a |
| -u | Update a record by ID | ./tips.sh -u |
| -s <term> | Search all fields | ./tips.sh -s docker |
| -f <regex> | Fuzzy search using regex | ./tips.sh -f "^curl.*error" |
| -T <title> | Search title field only | ./tips.sh -T ssh |
| -C <category> | Filter by category | ./tips.sh -C Linux |
| -g <tag> | Filter by tag | ./tips.sh -g terminal |
| -t <n> | Tail last N records | ./tips.sh -t 5 |
| -S | Show summary view | ./tips.sh -S |
| -G <term> | Search summary view | ./tips.sh -G cron |
| -v | Validate all records | ./tips.sh -v |
| -J | Convert CSV to JSON | ./tips.sh -J |
| -Y | Convert CSV to YAML | ./tips.sh -Y |
| -e | Edit CSV file | ./tips.sh -e |
| -E | Edit attachment by ID | ./tips.sh -E |
tips.csv<>tipsAttachments/./tips.sh -a./tips.sh -s cron./tips.sh -u → enter ID 12./tips.sh -t 3./tips.sh -v./tips.sh -J-E option.