agentsclimarketplace

System wide log file keyword search with count summary

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/system-wide-log-file-keyword-search-with-count-summary

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill system-wide-log-file-keyword-search-with-count-summary

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

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.

SKILL.md

1.9 KB, as published. Nobody here has run it

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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.