from Hacker News

Find and execute shell commands using Ollama

by regnull on 1/20/25, 1:31 AM with 3 comments

  • by regnull on 1/20/25, 1:31 AM

    If you are like me and constantly forget useful shell commands, this is for you.

    Here's an example:

    $ ./how.sh find and delete files older than 30 days Generated command: find . -type f -mtime +30 -exec rm {} \; Do you want to execute this command? (y/n):