{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "20000419-fauxnix--preview-bash-translation-before-running",
 "repo": "20000419/fauxnix",
 "repo_url": "https://github.com/20000419/fauxnix",
 "repo_slug": "20000419-fauxnix",
 "title": "Preview how a bash command translates before running it",
 "page_title": "How to preview how a bash command translates before running it with Fauxnix",
 "summary": "Use the translate command to check the PowerShell output for a risky bash command first.",
 "who": "A developer or ops engineer on Windows who wants to see exactly what a bash command will do before an agent or script runs it, especially destructive ones.",
 "problem": "A bash command such as a find with -delete is hard to judge on Windows when the real execution is hidden behind a translation layer.",
 "outcome": "The developer reads the generated translation, checks the scope of the command, and only then runs it through Fauxnix.",
 "steps": [
  "`npm install -g fauxnix-cli`",
  "`fauxnix translate \"find . -name '*.log' -mtime +7 -delete\"` (inferred, check the README)",
  "Read the generated PowerShell and confirm the path and filter match the intended scope",
  "Run the command with `fauxnix \"find . -name '*.log' -mtime +7 -delete\"` only after the preview looks correct (inferred, check the README)"
 ],
 "agent_prompt": "Using the fauxnix CLI from the 20000419/fauxnix repo, run `fauxnix translate \"find . -name '*.log' -mtime +7 -delete\"` in <project-dir>. Expect the generated PowerShell to be printed without executing the delete, and verify the file filter matches only the log files you intend to remove.",
 "agents": [
  "any"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The README shows the translate command for review, but a destructive command like find -delete still runs for real when executed, so the preview step is only useful if you read it.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "A Windows machine with PowerShell 5.1 or later (built in)",
  "Node.js 22.20.0 or later (Node 18 and 20 are unsupported in v2)",
  "npm to install the fauxnix-cli package",
  "An agent harness such as Claude Code, Codex, OpenCode, Kimi Code, Qwen Code, or any MCP client"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/20000419-fauxnix/preview-bash-translation-before-running/",
 "md": "https://dedupedai.com/use-cases/20000419-fauxnix/preview-bash-translation-before-running/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/20000419-fauxnix--preview-bash-translation-before-running.json",
 "api_version": "v1"
}
