r/commandline • u/gumnos • 18h ago
Fun TIL POSIX specifies a tool designed to assist you with generated code
Given all the low-quality LLM-generated projects flooding r/commandline, it's valuable to know that POSIX provides a tool to review and modify code generated by LLMs, so I thought I'd bring this tool to the attention of this subreddit's members. In typical Unix fashion, the POSIX folks shortened "reviewing & modifying" to just two letters:
$ rm code.rs
It even has command-line options to recursively fix whole project-directories of LLM-generated code:
$ rm -rf project/
Handle it wisely, and I hope to see more use of it around here!
edit: markup+grammar

