vault backup: 2025-02-12 10:12:36
This commit is contained in:
parent
0377bbbc11
commit
6072abbf9f
2
.obsidian/icons/icons - README.md
vendored
2
.obsidian/icons/icons - README.md
vendored
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for icons
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for colored-tags
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for dataview
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for highlightr-plugin
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for obsidian-admonition
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for obsidian-citation-plugin
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for lua
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for obsidian-enhancing-export
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for textemplate
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for obsidian-footnotes
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for obsidian-full-calendar
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for obsidian-git
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for obsidian-icon-folder
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for obsidian-pandoc-reference-list
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for obsidian-style-settings
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for obsidian-tasks-plugin
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for obsidian-zotero-desktop-connector
|
||||
|
||||
|
||||
2
.obsidian/plugins/plugins - README.md
vendored
2
.obsidian/plugins/plugins - README.md
vendored
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for plugins
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for templater-obsidian
|
||||
|
||||
|
||||
2
.obsidian/snippets/snippets - README.md
vendored
2
.obsidian/snippets/snippets - README.md
vendored
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for snippets
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for AnuPpuccin
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for Everforest
|
||||
|
||||
|
||||
2
.obsidian/themes/Minimal/Minimal - README.md
vendored
2
.obsidian/themes/Minimal/Minimal - README.md
vendored
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for Minimal
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for Obsidian Nord
|
||||
|
||||
|
||||
2
.obsidian/themes/themes - README.md
vendored
2
.obsidian/themes/themes - README.md
vendored
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for themes
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for Untitled
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 0 Managerial Pages
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 1 Daily Notes
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 10 October
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 11 November
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 2024
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 8 August
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 9 September
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 2025
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 1000s Templates
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 101 Current Writing
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for ANS NPIC HITL FHE
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 199 Paper Notes
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 2 Cole Group Meeting Notes
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 2.1 GSA Meeting Notes
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for QSG 2025 Sprnig
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 200 Library Papers
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 2000 Images
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 201 Metadata
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 1. Ideas for ARCADE Experiments
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 3 ARCADE
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 3-99 Research
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 5 PhD Proposal Ideas
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 6 Researching Techniques
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 7 BeagleBone
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 8.Zotero Web Server
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 99 Getting Used to Obsidian
|
||||
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for Haskell
|
||||
|
||||
## Files
|
||||
- [[Learning Plan.md]]
|
||||
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for Rust
|
||||
|
||||
## Files
|
||||
- [[Learning Plan.md]]
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for TLA
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 300s School
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 2024-09-09
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for ME 2016 - Nonlinear Dynamical Systems 1
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for images
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for ME 2046 - Digital Control Theory
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for ME 2085 - Graduate Seminar
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for ME 2150 - High Assurance Cyber-Physical Systems
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for ME 3100 - Engineering Research and Leadership Management
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for NUCE 2100 - Fundamentals of Nuclear Engineering
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for NUCE 2103 - Integration of Plant Systems with the Reactor Core
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for NUCE 2113 - Radiation Detection and Measurement
|
||||
|
||||
@ -6,5 +6,6 @@ Generated by ChatGPT on 2025-02-11
|
||||
- [[Laboratory 1.md]]
|
||||
- [[Laboratory 2.md]]
|
||||
- [[Laboratory 3.md]]
|
||||
- [[Laboratory 4.md]]
|
||||
- [[!Things That Need Done.md]]
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 0 Overview
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 1 Managing Stuff
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 2 Writing
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 3 Notes
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 4 Presentation
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 4 Qualifying Exam
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 98 With Revisions
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 99 Exports
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 1 Ideas
|
||||
|
||||
## Files
|
||||
- [[Untitled]]
|
||||
- [[Untitled.md]]
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 2 Logs
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 3 Notes
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 5 Thesis
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 0. Deadlines
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 1. Other Work
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 2. Research
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 3. Events
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 900s Calendars
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for 9999 Personal
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Generated by ChatGPT on 2025-02-11
|
||||
Generated by ChatGPT on 2025-02-12
|
||||
|
||||
# Table of Contents for NonGraph
|
||||
|
||||
|
||||
55
reddup.sh
55
reddup.sh
@ -8,14 +8,18 @@
|
||||
# non-hidden directory. The file is named "Folder Name - README.md".
|
||||
#
|
||||
# Each README includes:
|
||||
# - An author/date header.
|
||||
# - A header with an author/date line.
|
||||
# - A header with the folder's name.
|
||||
# - An alphabetically sorted list of immediate subdirectories,
|
||||
# with links to that subdirectory’s own README.
|
||||
# - An alphabetically sorted list of immediate files (excluding
|
||||
# the generated README).
|
||||
#
|
||||
# Hidden directories (e.g., .git) are skipped.
|
||||
# Hidden directories (or any directory under a hidden parent such as .git)
|
||||
# are skipped.
|
||||
#
|
||||
# This version optimizes by only updating the README if the content (beyond
|
||||
# the header) has changed.
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
# Delete any existing README files matching "* - README.md"
|
||||
@ -26,12 +30,12 @@ base_dir="."
|
||||
|
||||
# Recursively process every directory starting from base_dir.
|
||||
find "$base_dir" -type d -print0 | while IFS= read -r -d '' dir; do
|
||||
# Skip hidden directories (e.g., those starting with a dot)
|
||||
if [[ "$(basename "$dir")" == .* ]]; then
|
||||
# Skip hidden directories or those under hidden directories (e.g. .git)
|
||||
if [[ "$(basename "$dir")" == .* ]] || [[ "$dir" == *"/.git"* ]]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
# For the top-level directory (base_dir), use its actual name (using $PWD)
|
||||
# For the top-level directory, use its actual name (using $PWD)
|
||||
if [ "$dir" = "$base_dir" ]; then
|
||||
base=$(basename "$PWD")
|
||||
else
|
||||
@ -41,19 +45,24 @@ find "$base_dir" -type d -print0 | while IFS= read -r -d '' dir; do
|
||||
# Define the path for the README file: "Folder Name - README.md"
|
||||
readme="$dir/${base} - README.md"
|
||||
|
||||
# Write the header into the README file, including author/date attribution.
|
||||
# Create a temporary file to hold the new content.
|
||||
tmpfile=$(mktemp)
|
||||
|
||||
# Write the header into the temporary file.
|
||||
# (The header includes the current date; note that for optimization
|
||||
# we will ignore the header when comparing changes.)
|
||||
{
|
||||
echo "Generated by ChatGPT on $(date '+%Y-%m-%d')"
|
||||
echo ""
|
||||
echo "# Table of Contents for ${base}"
|
||||
echo ""
|
||||
} > "$readme"
|
||||
} > "$tmpfile"
|
||||
|
||||
#########################
|
||||
# Process Subdirectories
|
||||
#########################
|
||||
subdirs=()
|
||||
# Find immediate subdirectories (depth 1) in the current directory, skipping hidden ones.
|
||||
# Find immediate subdirectories (depth 1), skipping hidden ones.
|
||||
while IFS= read -r -d '' subdir; do
|
||||
sub_basename=$(basename "$subdir")
|
||||
if [ -n "$sub_basename" ]; then
|
||||
@ -64,14 +73,15 @@ find "$base_dir" -type d -print0 | while IFS= read -r -d '' dir; do
|
||||
if [ ${#subdirs[@]} -gt 0 ]; then
|
||||
# Sort subdirectory names alphabetically.
|
||||
mapfile -t sorted_subdirs < <(printf "%s\n" "${subdirs[@]}" | sort)
|
||||
echo "## Subdirectories" >> "$readme"
|
||||
echo "## Subdirectories" >> "$tmpfile"
|
||||
for sub in "${sorted_subdirs[@]}"; do
|
||||
# Build the link to the subdirectory's README file.
|
||||
# The link format is: [[Subfolder/Subfolder - README]]
|
||||
line="- [[${sub}/${sub} - README]]"
|
||||
printf "%s\n" "$line" >> "$readme"
|
||||
# Use printf with %s to avoid issues with leading dashes.
|
||||
printf "%s\n" "$line" >> "$tmpfile"
|
||||
done
|
||||
echo "" >> "$readme"
|
||||
echo "" >> "$tmpfile"
|
||||
fi
|
||||
|
||||
#################
|
||||
@ -89,15 +99,26 @@ find "$base_dir" -type d -print0 | while IFS= read -r -d '' dir; do
|
||||
if [ ${#files[@]} -gt 0 ]; then
|
||||
# Sort file names alphabetically.
|
||||
mapfile -t sorted_files < <(printf "%s\n" "${files[@]}" | sort)
|
||||
echo "## Files" >> "$readme"
|
||||
echo "## Files" >> "$tmpfile"
|
||||
for f in "${sorted_files[@]}"; do
|
||||
line="- [[${f}]]"
|
||||
printf "%s\n" "$line" >> "$readme"
|
||||
printf "%s\n" "$line" >> "$tmpfile"
|
||||
done
|
||||
echo "" >> "$readme"
|
||||
echo "" >> "$tmpfile"
|
||||
fi
|
||||
|
||||
# If the README file exists, compare its body (ignoring the header)
|
||||
# with the new content. The header is the first line (or first two lines,
|
||||
# if you consider the blank line). Here, we compare starting from line 3.
|
||||
if [ -f "$readme" ]; then
|
||||
if diff -q <(tail -n +3 "$tmpfile") <(tail -n +3 "$readme") >/dev/null; then
|
||||
# No change in the "body" of the file; do not update.
|
||||
rm "$tmpfile"
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
|
||||
# If new or changed, move the temporary file to the target README.
|
||||
mv "$tmpfile" "$readme"
|
||||
done
|
||||
|
||||
find .git -type f -name '* - README.md' -delete
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user