Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    grep, sed and awk Text Processing Recipes

    by Saizul Amin

    1

    Write correct one-liners and pipelines with awk, sed, grep, cut, sort, uniq, tr, xargs, find and jq.

    Free

    Security scanned
    grep, sed and awk Text Processing Recipes

    grep, sed and awk Text Processing Recipes

    Example session with this skill installed

    Run the grep, sed and awk Text Processing Recipes skill on my project and give me a prioritised list of what to fix, with exact changes.

    • Read your context and instructions
    • Compiled the grep sed

    Here is what the grep, sed and awk Text Processing Recipes skill produced.

    Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.

    Output

    format: csv, delimiter: comma, header row, line endings: CRLF, scanned 4 lines
    
      #   name                  sample
      $1   id                    1
      $2   name                  Smith, Jane
      $3   city                  Dhaka
      $4   amount                120.50
    
    WARNING: CRLF line endings: the last field ends in \r, so $NF == "x" never matches; use tr -d '\r' first
    
    WARNING: quoted fields contain the comma delimiter: awk -F and cut will split inside quotes; use a CSV-aware tool (python3 csv module, mlr, csvkit) or the recipes in references/csv.md
    
    starting points:
      tr -d '\r' < FILE > FILE.lf                       # fix line endings first
      python3 -c 'import csv,sys; [print(r[2]) for r in csv.reader(sys.stdin, delimiter=",")]' < FILE   # CSV-aware (awk/cut below split inside quotes)
      awk -F',' '{print $3}' FILE        # field 3 (city)
      cut -d',' -f3 FILE
      awk -F',' 'NR > 1 && $3 != "" {n++} END {print n+0}' FILE   # count non-empty
      awk -F',' 'NF != 4' FILE                      # rows with a different field count
    

    What you do next

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. Keep the skill installed and re-run it whenever the project changes.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Write correct one-liners and pipelines with awk, sed, grep, cut, sort, uniq, tr, xargs, find and jq. A preview script inspects the input first (CSV/TSV/whitespace columns/JSON/JSON Lines, field numbers with header names, CRLF line endings, BOM, quoted delimiters, ragged rows, invalid UTF-8) and suggests matching awk/cut/jq commands; cheat sheets cover awk, sed (GNU and BSD), jq, CSV handling and pipelines.

    Who it's for

    Use when the user asks to extract columns, filter, count, sum, group, deduplicate, join files, replace text in many files, parse logs, convert CSV/JSON, or asks "how do I do X with awk/sed/jq", or when a one-liner gives wrong results because of spaces, quotes, \r or locale.

    What's inside

    • Tested, offline Python script(s): field_preview.py (deterministic results, standard library only unless noted)
    • Reference guides: csv.md, jq.md, pipelines.md, awk.md, sed.md
    • Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow

    Why it's worth it

    Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.

    Works with every major AI agent

    Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.

    Requirements

    • Python 3.8+ for the bundled scripts
    • No API keys, no account, runs locally

    Open source: saizul/bash-shell-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Frequently Asked Questions

    Write correct one-liners and pipelines with awk, sed, grep, cut, sort, uniq, tr, xargs, find and jq. A preview script inspects the input first (CSV/TSV/whitespace columns/JSON/JSON Lines, field numbers with header names, CRLF line endings, BOM, quoted delimiters, ragged rows, invalid UTF-8) and s...

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use grep, sed and awk Text Processing Recipes on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    Free