Simple ChatGPT .sh script to show you complex terminal commands
Install jq
:
brew install jq
Export your OpenAPI key as an environment variable:
export OPENAI_API_KEY="your_api_key_here"`
Move the script to local/bin:
sudo mv hdi.sh /usr/local/bin/hdi
Make the script executable:
chmod +x hdi.sh
In Terminal, simply type a command like this:
hdi find all folders created before 11/01/2023 containing .jsx files and move them to a folder called 'archive'