
Demo for ShellGPT
Compare functionality Requirement You need a quick and dirty way to get all errors from syslog file on your ubuntu machine. Without ShellGPT export GOOGLE_API_KEY = "your_actual_key_here" curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent?key= $GOOGLE_API_KEY " \ -H 'Content-Type: application/json' \ -X POST \ -d '{ "contents": [{ "parts":[{"text": "Create a Linux shell script to list errors reported in syslog file"}] }] }' With ShellGPT sgpt --shell "Create a Linux shell script to list errors reported in syslog file" Without ShellGPT (Better prompt) curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent?key= $GOOGLE_API_KEY " \ -H 'Content-Type: application/json' \ -X POST \ -d '{ "contents": [{ "parts":[{"text": "Create a Linux shell script to list errors reported in syslog file. Make it quick and dirty. I dont want all the comments and error handling in the script."}] }] }' Using system files The Sec
Continue reading on Dev.to
Opens in a new tab



