원클릭으로
awk-sed
Advanced manipulation of text streams using the classic Unix power tools: awk and sed.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Advanced manipulation of text streams using the classic Unix power tools: awk and sed.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Expert in building, evaluating, and deploying AI agents using the Google ADK Python framework. Use this skill for writing agent logic, configuring multi-agent systems, and implementing tool integrations.
The discipline of writing robust, re-runnable system administration scripts that converge to a desired state.
Expertise in creating delightful, low-friction command-line interfaces using modern TUI principles.
Ensuring that code is well formatted
The art of identifying the root cause of software defects through heuristic analysis and logical deduction.
Standards and constraints for the unified google-genai library.
| name | awk-sed |
| description | Advanced manipulation of text streams using the classic Unix power tools: awk and sed. |
Advanced manipulation of text streams using the classic Unix power tools: awk and sed.
* **Philosophy:** Awk is a data-driven scripting language. It operates on records (lines) and fields (columns).
* **Structure:** `pattern { action }`. If pattern is true, perform action.
* **Variables:** `$0` (Whole line), `$1` (First field), `NR` (Line number), `NF` (Field count), `FS` (Input separator), `OFS` (Output separator).
* **Efficiency:** Prefer `awk '/pattern/ { print $2 }'` over `grep 'pattern' | cut -f2`. It saves a process fork.
* **Philosophy:** Sed is a stream editor for filtering and transforming text.
* **Syntax:** `s/regexp/replacement/flags`.
* **Delimiters:** You are not forced to use `/`. If your pattern contains slashes (like paths), use `s|/path/to|/new/path|` to avoid "leaning toothpick syndrome".
* **Addressing:** Apply commands only to specific lines: `sed '1,5d'` (delete lines 1-5) or `sed '/^#/d'` (delete comments).
* **In-Place Editing (`-i`):**
* **GNU (Linux):** `sed -i 's/foo/bar/' file` (No extension needed).
* **BSD (FreeBSD/macOS):** `sed -i '' 's/foo/bar/' file` (Empty string argument MANDATORY).
* **Safe Portable:** Use `sed -i.bak ...` to create a backup, which works on both.
* **Regex:** Standard `sed` uses BRE (Basic Regex). Use `sed -E` to enable Extended Regex (capturing groups `()`, `+`, `?`).
cat file | grep | awk) into single-process invocations.awk BEGIN and END blocks to perform summation, averaging, or header/footer generation.sed commands that safely handle delimiters inside the search string.