This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Required parameters: | |
| # @raycast.schemaVersion 1 | |
| # @raycast.title AI Usage | |
| # @raycast.mode fullOutput | |
| # Optional parameters: | |
| # @raycast.icon 📊 | |
| # @raycast.packageName AI Usage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "" > output.txt | |
| process_folder() { | |
| local folder=$1 | |
| find "$folder" -type f | while read file; do | |
| # Verifica se é um arquivo de texto (text/* no mime-type) | |
| if file --mime-type "$file" | grep -q '^.*: text/'; then | |
| echo "File: $file" >> output.txt | |
| cat "$file" >> output.txt |