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 | |
# Script: chatgpt.sh | |
# Description: Traverse through a specified folder, excluding certain folders and files, and print the contents of all non-excluded files. | |
# Example: ./chatgpt.sh /path/to/folder | |
# Check if a folder path is provided | |
if [ -z "$1" ]; then | |
echo "Please provide a folder path." | |
exit 1 |