Find and execute shell commands using Ollama

by regnullon 1/20/2025, 1:31 AMwith 3 comments

by regnullon 1/20/2025, 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):