All gists

biscuide
Last active 2 months ago

This script traverses a directory and prints the contents of files in markdown format.

0 0 1
1 #!/bin/bash
2
3 # Function to print help message
4 print_help() {
5 echo "Description:"
6 echo " This script traverses a directory and prints the contents of files in markdown format."
7 echo " It was designed to simplify sharing code from a project with ChatGPT by formatting the files as markdown text."
8 echo " By default, it only includes files of type 'application' or 'text'."
9 echo ""
10 echo " Example output:"