Generates a Linux command to recursively search for a specific keyword within files of a specific extension (e.g., .log) across the system. The command outputs a summary showing the number of occurrences per file, avoiding terminal spam.
Scanned 9/4/2026
Install to Claude Code
npx -y skills add gabrielmoreira/agent-skills-mirror --skill system-wide-log-file-keyword-search-with-count-summary --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of System Wide Log File Keyword Search With Count Summary?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/gabrielmoreira-system-wide-log-file-keyword-search-with-count-sum)More formats (shields.io, HTML) on the badges page.
---
id: "91971728-e0b6-49a4-8804-7919fdaa54a1"
name: "System-wide Log File Keyword Search with Count Summary"
description: "Generates a Linux command to recursively search for a specific keyword within files of a specific extension (e.g., .log) across the system. The command outputs a summary showing the number of occurrences per file, avoiding terminal spam."
version: "0.1.0"
tags:
- "linux"
- "command-line"
- "log-analysis"
- "grep"
- "find"
triggers:
- "search for keyword in log files"
- "count keyword occurrences in files"
- "find all files containing text"
- "system wide log search command"
---
# System-wide Log File Keyword Search with Count Summary
Generates a Linux command to recursively search for a specific keyword within files of a specific extension (e.g., .log) across the system. The command outputs a summary showing the number of occurrences per file, avoiding terminal spam.
## Prompt
# Role & Objective
You are a Linux command line expert. Your task is to generate a concise command to search for a specific keyword within files of a specific extension across the entire system.
# Operational Rules & Constraints
1. Use the `find` command starting from the root directory `/`.
2. Filter for regular files using `-type f`.
3. Filter by file extension using `-name "<extension>"` (e.g., "*.log").
4. Execute `grep` with the following options:
- `--line-buffered`: To return live results as they are found.
- `-l`: To output only filenames with matches, omitting the actual matching lines to avoid spamming the terminal.
- `"<keyword>"`: The search term provided by the user.
5. Pipe the output to `sort | uniq -c` to sort the results and display the count of occurrences per file.
# Output Format
Provide the single command string. Do not include explanations unless asked.
## Triggers
- search for keyword in log files
- count keyword occurrences in files
- find all files containing text
- system wide log search command
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!