vault backup: 2025-02-10 11:24:23
This commit is contained in:
parent
e654876587
commit
0604de3cae
66
300s School/!TOC.md
Normal file
66
300s School/!TOC.md
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
# Table of Contents for .
|
||||||
|
|
||||||
|
## Subdirectories
|
||||||
|
- [[ME/!TOC]]
|
||||||
|
- [[2016/!TOC]]
|
||||||
|
- [[-/!TOC]]
|
||||||
|
- [[Nonlinear/!TOC]]
|
||||||
|
- [[Dynamical/!TOC]]
|
||||||
|
- [[Systems/!TOC]]
|
||||||
|
- [[1/!TOC]]
|
||||||
|
- [[ME/!TOC]]
|
||||||
|
- [[2046/!TOC]]
|
||||||
|
- [[-/!TOC]]
|
||||||
|
- [[Digital/!TOC]]
|
||||||
|
- [[Control/!TOC]]
|
||||||
|
- [[Theory/!TOC]]
|
||||||
|
- [[ME/!TOC]]
|
||||||
|
- [[2085/!TOC]]
|
||||||
|
- [[-/!TOC]]
|
||||||
|
- [[Graduate/!TOC]]
|
||||||
|
- [[Seminar/!TOC]]
|
||||||
|
- [[ME/!TOC]]
|
||||||
|
- [[2150/!TOC]]
|
||||||
|
- [[-/!TOC]]
|
||||||
|
- [[High/!TOC]]
|
||||||
|
- [[Assurance/!TOC]]
|
||||||
|
- [[Cyber-Physical/!TOC]]
|
||||||
|
- [[Systems/!TOC]]
|
||||||
|
- [[ME/!TOC]]
|
||||||
|
- [[3100/!TOC]]
|
||||||
|
- [[-/!TOC]]
|
||||||
|
- [[Engineering/!TOC]]
|
||||||
|
- [[Research/!TOC]]
|
||||||
|
- [[and/!TOC]]
|
||||||
|
- [[Leadership/!TOC]]
|
||||||
|
- [[Management/!TOC]]
|
||||||
|
- [[NUCE/!TOC]]
|
||||||
|
- [[2100/!TOC]]
|
||||||
|
- [[-/!TOC]]
|
||||||
|
- [[Fundamentals/!TOC]]
|
||||||
|
- [[of/!TOC]]
|
||||||
|
- [[Nuclear/!TOC]]
|
||||||
|
- [[Engineering/!TOC]]
|
||||||
|
- [[NUCE/!TOC]]
|
||||||
|
- [[2103/!TOC]]
|
||||||
|
- [[-/!TOC]]
|
||||||
|
- [[Integration/!TOC]]
|
||||||
|
- [[of/!TOC]]
|
||||||
|
- [[Plant/!TOC]]
|
||||||
|
- [[Systems/!TOC]]
|
||||||
|
- [[with/!TOC]]
|
||||||
|
- [[the/!TOC]]
|
||||||
|
- [[Reactor/!TOC]]
|
||||||
|
- [[Core/!TOC]]
|
||||||
|
- [[NUCE/!TOC]]
|
||||||
|
- [[2113/!TOC]]
|
||||||
|
- [[-/!TOC]]
|
||||||
|
- [[Radiation/!TOC]]
|
||||||
|
- [[Detection/!TOC]]
|
||||||
|
- [[and/!TOC]]
|
||||||
|
- [[Measurement/!TOC]]
|
||||||
|
|
||||||
|
## Files
|
||||||
|
- [[README.md]]
|
||||||
|
- [[reddup.sh]]
|
||||||
|
|
||||||
54
300s School/ME 2016 - Nonlinear Dynamical Systems 1/!TOC.md
Normal file
54
300s School/ME 2016 - Nonlinear Dynamical Systems 1/!TOC.md
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# Table of Contents for ME 2016 - Nonlinear Dynamical Systems 1
|
||||||
|
|
||||||
|
## Subdirectories
|
||||||
|
- [[2024-09-09/!TOC]]
|
||||||
|
- [[images/!TOC]]
|
||||||
|
|
||||||
|
## Files
|
||||||
|
- [[2024-08-26]]
|
||||||
|
- [[Python]]
|
||||||
|
- [[Introduction.md]]
|
||||||
|
- [[2024-09-09]]
|
||||||
|
- [[Example.py]]
|
||||||
|
- [[2024-09-09]]
|
||||||
|
- [[Frameworks]]
|
||||||
|
- [[and]]
|
||||||
|
- [[Review.md]]
|
||||||
|
- [[2024-09-16]]
|
||||||
|
- [[Plane]]
|
||||||
|
- [[Diagrams.md]]
|
||||||
|
- [[2024-09-18]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[1.md]]
|
||||||
|
- [[2024-09-23]]
|
||||||
|
- [[More]]
|
||||||
|
- [[Phase]]
|
||||||
|
- [[Plane]]
|
||||||
|
- [[Stuff.md]]
|
||||||
|
- [[2024-09-30]]
|
||||||
|
- [[Limit]]
|
||||||
|
- [[Cycles.md]]
|
||||||
|
- [[2024-10-28]]
|
||||||
|
- [[Stability.md]]
|
||||||
|
- [[2024-11-11]]
|
||||||
|
- [[Nonlinear]]
|
||||||
|
- [[3D]]
|
||||||
|
- [[Phenomena.md]]
|
||||||
|
- [[2024-11-18]]
|
||||||
|
- [[Volume]]
|
||||||
|
- [[Contraction.md]]
|
||||||
|
- [[2024-12-02]]
|
||||||
|
- [[Delay]]
|
||||||
|
- [[Differential]]
|
||||||
|
- [[Equation.md]]
|
||||||
|
- [[ME2016_MEMS1016___Mini_Project_1.pdf]]
|
||||||
|
- [[Mini]]
|
||||||
|
- [[Project.md]]
|
||||||
|
- [[README.md]]
|
||||||
|
- [[reddup]]
|
||||||
|
- [[To]]
|
||||||
|
- [[Do]]
|
||||||
|
- [[-]]
|
||||||
|
- [[ME]]
|
||||||
|
- [[2016.md]]
|
||||||
|
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
# Table of Contents for 2024-09-09
|
||||||
|
|
||||||
|
## Files
|
||||||
|
- [[ex1.png]]
|
||||||
|
- [[ex2.png]]
|
||||||
|
- [[ex3.png]]
|
||||||
|
- [[README.md]]
|
||||||
|
|
||||||
@ -0,0 +1,27 @@
|
|||||||
|
# Table of Contents for images
|
||||||
|
|
||||||
|
## Files
|
||||||
|
- [[How]]
|
||||||
|
- [[do]]
|
||||||
|
- [[we]]
|
||||||
|
- [[deal]]
|
||||||
|
- [[with]]
|
||||||
|
- [[nonlinearities?.png]]
|
||||||
|
- [[LINE]]
|
||||||
|
- [[Systems]]
|
||||||
|
- [[in]]
|
||||||
|
- [[the]]
|
||||||
|
- [[Plane.png]]
|
||||||
|
- [[Mode]]
|
||||||
|
- [[Diagram.png]]
|
||||||
|
- [[Nonlinear]]
|
||||||
|
- [[Planar]]
|
||||||
|
- [[Systems.png]]
|
||||||
|
- [[Pasted]]
|
||||||
|
- [[image]]
|
||||||
|
- [[20240923133628.png]]
|
||||||
|
- [[Pasted]]
|
||||||
|
- [[image]]
|
||||||
|
- [[20240923133900.png]]
|
||||||
|
- [[README.md]]
|
||||||
|
|
||||||
18
300s School/ME 2046 - Digital Control Theory/!TOC.md
Normal file
18
300s School/ME 2046 - Digital Control Theory/!TOC.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Table of Contents for ME 2046 - Digital Control Theory
|
||||||
|
|
||||||
|
## Files
|
||||||
|
- [[2025-01-09]]
|
||||||
|
- [[Sampling]]
|
||||||
|
- [[Theory.md]]
|
||||||
|
- [[2025-01-16]]
|
||||||
|
- [[The]]
|
||||||
|
- [[Z]]
|
||||||
|
- [[Transform.md]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[1.md]]
|
||||||
|
- [[README.md]]
|
||||||
|
- [[!Things]]
|
||||||
|
- [[That]]
|
||||||
|
- [[Need]]
|
||||||
|
- [[Done.md]]
|
||||||
|
|
||||||
107
300s School/ME 2085 - Graduate Seminar/!TOC.md
Normal file
107
300s School/ME 2085 - Graduate Seminar/!TOC.md
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
# Table of Contents for ME 2085 - Graduate Seminar
|
||||||
|
|
||||||
|
## Files
|
||||||
|
- [[2024-08-29]]
|
||||||
|
- [[Fatigue-]]
|
||||||
|
- [[and]]
|
||||||
|
- [[Toughness-Based]]
|
||||||
|
- [[Process]]
|
||||||
|
- [[Windows]]
|
||||||
|
- [[in]]
|
||||||
|
- [[Additively]]
|
||||||
|
- [[Manufactured]]
|
||||||
|
- [[Materials]]
|
||||||
|
- [[-]]
|
||||||
|
- [[John]]
|
||||||
|
- [[Lewandowski.md]]
|
||||||
|
- [[2024-09-05]]
|
||||||
|
- [[Model-Based]]
|
||||||
|
- [[Design]]
|
||||||
|
- [[of]]
|
||||||
|
- [[Coatings]]
|
||||||
|
- [[for]]
|
||||||
|
- [[Gas]]
|
||||||
|
- [[Turbine]]
|
||||||
|
- [[Engines]]
|
||||||
|
- [[-]]
|
||||||
|
- [[R.]]
|
||||||
|
- [[Wesley]]
|
||||||
|
- [[Jackson.md]]
|
||||||
|
- [[2024-09-12]]
|
||||||
|
- [[(OHARA]]
|
||||||
|
- [[STUDENT]]
|
||||||
|
- [[CENTER]]
|
||||||
|
- [[DINING]]
|
||||||
|
- [[ROOM)]]
|
||||||
|
- [[Overview]]
|
||||||
|
- [[of]]
|
||||||
|
- [[NSF]]
|
||||||
|
- [[&]]
|
||||||
|
- [[Research]]
|
||||||
|
- [[Funding]]
|
||||||
|
- [[Opportunities]]
|
||||||
|
- [[-]]
|
||||||
|
- [[Ronald]]
|
||||||
|
- [[D.]]
|
||||||
|
- [[Joslin.md]]
|
||||||
|
- [[2024-10-03]]
|
||||||
|
- [[Materials]]
|
||||||
|
- [[Design]]
|
||||||
|
- [[in]]
|
||||||
|
- [[Nuclear]]
|
||||||
|
- [[Systems]]
|
||||||
|
- [[and]]
|
||||||
|
- [[Additive]]
|
||||||
|
- [[Manufacturing]]
|
||||||
|
- [[to]]
|
||||||
|
- [[Overcome]]
|
||||||
|
- [[Design]]
|
||||||
|
- [[Challenges]]
|
||||||
|
- [[-]]
|
||||||
|
- [[Peter]]
|
||||||
|
- [[Hosemann.md]]
|
||||||
|
- [[2024-10-31]]
|
||||||
|
- [[Net]]
|
||||||
|
- [[Zero]]
|
||||||
|
- [[Pathways]]
|
||||||
|
- [[in]]
|
||||||
|
- [[the]]
|
||||||
|
- [[US]]
|
||||||
|
- [[Energy]]
|
||||||
|
- [[System]]
|
||||||
|
- [[-]]
|
||||||
|
- [[Timothy]]
|
||||||
|
- [[Lieuwen.md]]
|
||||||
|
- [[2024-11-21]]
|
||||||
|
- [[Tensor]]
|
||||||
|
- [[Networks]]
|
||||||
|
- [[for]]
|
||||||
|
- [[Non-Equilibrium]]
|
||||||
|
- [[Quantum]]
|
||||||
|
- [[Many-Body]]
|
||||||
|
- [[Systems]]
|
||||||
|
- [[-]]
|
||||||
|
- [[Michael]]
|
||||||
|
- [[Zwolak.md]]
|
||||||
|
- [[2024-12-03]]
|
||||||
|
- [[Oxide]]
|
||||||
|
- [[Particle]]
|
||||||
|
- [[Dynamics]]
|
||||||
|
- [[at]]
|
||||||
|
- [[the]]
|
||||||
|
- [[Melt]]
|
||||||
|
- [[Pool]]
|
||||||
|
- [[Scale]]
|
||||||
|
- [[in]]
|
||||||
|
- [[Laser]]
|
||||||
|
- [[Poweder]]
|
||||||
|
- [[bed]]
|
||||||
|
- [[Fusion]]
|
||||||
|
- [[Additive]]
|
||||||
|
- [[Manufacturing]]
|
||||||
|
- [[-]]
|
||||||
|
- [[Sneha]]
|
||||||
|
- [[Prabha]]
|
||||||
|
- [[Narra.md]]
|
||||||
|
- [[README.md]]
|
||||||
|
|
||||||
@ -0,0 +1,43 @@
|
|||||||
|
# Table of Contents for ME 2150 - High Assurance Cyber-Physical Systems
|
||||||
|
|
||||||
|
## Files
|
||||||
|
- [[2025-01-09]]
|
||||||
|
- [[Syllabus]]
|
||||||
|
- [[and]]
|
||||||
|
- [[Introduction.md]]
|
||||||
|
- [[2025-01-14]]
|
||||||
|
- [[Microkernels.md]]
|
||||||
|
- [[2025-01-16]]
|
||||||
|
- [[HACMS]]
|
||||||
|
- [[Program]]
|
||||||
|
- [[Overview.md]]
|
||||||
|
- [[Capabilities]]
|
||||||
|
- [[Tutorials.md]]
|
||||||
|
- [[Investigating]]
|
||||||
|
- [[seL4]]
|
||||||
|
- [[with]]
|
||||||
|
- [[Docker.md]]
|
||||||
|
- [[ME]]
|
||||||
|
- [[2150]]
|
||||||
|
- [[-]]
|
||||||
|
- [[High-Assurance]]
|
||||||
|
- [[Cyber-Physical]]
|
||||||
|
- [[Systems]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[1]]
|
||||||
|
- [[Complete.md]]
|
||||||
|
- [[ME]]
|
||||||
|
- [[2150]]
|
||||||
|
- [[-]]
|
||||||
|
- [[High-Assurance]]
|
||||||
|
- [[Cyber-Physical]]
|
||||||
|
- [[Systems]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[1.md]]
|
||||||
|
- [[press.png]]
|
||||||
|
- [[README.md]]
|
||||||
|
- [[!Things]]
|
||||||
|
- [[That]]
|
||||||
|
- [[Need]]
|
||||||
|
- [[Done.md]]
|
||||||
|
|
||||||
@ -0,0 +1,34 @@
|
|||||||
|
# Table of Contents for ME 3100 - Engineering Research and Leadership Management
|
||||||
|
|
||||||
|
## Files
|
||||||
|
- [[1.]]
|
||||||
|
- [[Goals]]
|
||||||
|
- [[and]]
|
||||||
|
- [[Outcomes.md]]
|
||||||
|
- [[2.]]
|
||||||
|
- [[State]]
|
||||||
|
- [[of]]
|
||||||
|
- [[the]]
|
||||||
|
- [[Art]]
|
||||||
|
- [[and]]
|
||||||
|
- [[Limits]]
|
||||||
|
- [[of]]
|
||||||
|
- [[Current]]
|
||||||
|
- [[Practice.md]]
|
||||||
|
- [[3.]]
|
||||||
|
- [[Research]]
|
||||||
|
- [[Approach.md]]
|
||||||
|
- [[4.]]
|
||||||
|
- [[Metrics]]
|
||||||
|
- [[of]]
|
||||||
|
- [[Success.md]]
|
||||||
|
- [[5.]]
|
||||||
|
- [[Research]]
|
||||||
|
- [[Impact.md]]
|
||||||
|
- [[6.]]
|
||||||
|
- [[Risks]]
|
||||||
|
- [[and]]
|
||||||
|
- [[Contingencies.md]]
|
||||||
|
- [[ERLM_Structure_of_Objectives_Page.pdf]]
|
||||||
|
- [[README.md]]
|
||||||
|
|
||||||
@ -0,0 +1,83 @@
|
|||||||
|
# Table of Contents for NUCE 2100 - Fundamentals of Nuclear Engineering
|
||||||
|
|
||||||
|
## Files
|
||||||
|
- [[2024-08-27]]
|
||||||
|
- [[Introduction.md]]
|
||||||
|
- [[2024-09-03]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[1.md]]
|
||||||
|
- [[2024-09-03]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[1.pdf]]
|
||||||
|
- [[2024-09-03]]
|
||||||
|
- [[Module]]
|
||||||
|
- [[2.md]]
|
||||||
|
- [[2024-09-10]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[2.md]]
|
||||||
|
- [[2024-09-10]]
|
||||||
|
- [[Module]]
|
||||||
|
- [[3.md]]
|
||||||
|
- [[2024-09-17]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[3.md]]
|
||||||
|
- [[2024-09-17]]
|
||||||
|
- [[Module]]
|
||||||
|
- [[5]]
|
||||||
|
- [[Nuclear]]
|
||||||
|
- [[Fission]]
|
||||||
|
- [[Basics.md]]
|
||||||
|
- [[2024-09-24]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[4.md]]
|
||||||
|
- [[2024-09-24]]
|
||||||
|
- [[Week]]
|
||||||
|
- [[5.md]]
|
||||||
|
- [[2024-10-01]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[5.md]]
|
||||||
|
- [[2024-10-01]]
|
||||||
|
- [[Project]]
|
||||||
|
- [[Topic]]
|
||||||
|
- [[and]]
|
||||||
|
- [[Description.md]]
|
||||||
|
- [[2024-10-08]]
|
||||||
|
- [[Midterm]]
|
||||||
|
- [[.md]]
|
||||||
|
- [[2024-10-29]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[6.md]]
|
||||||
|
- [[2024-11-05]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[7.md]]
|
||||||
|
- [[2024-11-12]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[8.md]]
|
||||||
|
- [[2024-11-19]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[9.md]]
|
||||||
|
- [[2024-12-03]]
|
||||||
|
- [[Homework]]
|
||||||
|
- [[10.md]]
|
||||||
|
- [[2024-12-10]]
|
||||||
|
- [[Project]]
|
||||||
|
- [[Paper]]
|
||||||
|
- [[and]]
|
||||||
|
- [[Presentation.md]]
|
||||||
|
- [[HW2.md]]
|
||||||
|
- [[HW2.pdf]]
|
||||||
|
- [[HW2v2.md]]
|
||||||
|
- [[Pasted]]
|
||||||
|
- [[image]]
|
||||||
|
- [[20240827190612.png]]
|
||||||
|
- [[Pasted]]
|
||||||
|
- [[image]]
|
||||||
|
- [[20240827193439.png]]
|
||||||
|
- [[Pasted]]
|
||||||
|
- [[image]]
|
||||||
|
- [[20240827195025.png]]
|
||||||
|
- [[Project]]
|
||||||
|
- [[and]]
|
||||||
|
- [[Presentation.md]]
|
||||||
|
- [[README.md]]
|
||||||
|
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
# Table of Contents for NUCE 2103 - Integration of Plant Systems with the Reactor Core
|
||||||
|
|
||||||
|
## Files
|
||||||
|
- [[NUCE]]
|
||||||
|
- [[2103]]
|
||||||
|
- [[Final]]
|
||||||
|
- [[Exam.md]]
|
||||||
|
- [[README.md]]
|
||||||
|
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
# Table of Contents for NUCE 2113 - Radiation Detection and Measurement
|
||||||
|
|
||||||
|
## Files
|
||||||
|
- [[Laboratory]]
|
||||||
|
- [[1.md]]
|
||||||
|
- [[Laboratory]]
|
||||||
|
- [[2.md]]
|
||||||
|
- [[Laboratory]]
|
||||||
|
- [[3.md]]
|
||||||
|
- [[README.md]]
|
||||||
|
- [[!Things]]
|
||||||
|
- [[That]]
|
||||||
|
- [[Need]]
|
||||||
|
- [[Done.md]]
|
||||||
|
|
||||||
@ -1,48 +1,63 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# This script recursively creates a README.md file in every directory under the current folder.
|
# This script recursively creates a table-of-contents file named !TOC.md in every directory
|
||||||
# Each README.md lists:
|
# under the current folder (e.g., your school folder). Each !TOC.md file will include:
|
||||||
# - A header with the directory name.
|
# - A header with the directory name.
|
||||||
# - A list of immediate subdirectories (as links).
|
# - A list of immediate subdirectories (alphabetically sorted) as links to that subdirectory’s own !TOC.
|
||||||
# - A list of immediate files (excluding the README.md itself) as links.
|
# - A list of immediate files (alphabetically sorted) as links.
|
||||||
#
|
#
|
||||||
# Note: This script uses find with the -print0 option to handle directories or filenames with spaces.
|
# IMPORTANT:
|
||||||
|
# - This script assumes that folder and file names do not include newline characters.
|
||||||
|
# - It uses bash arrays and assumes GNU coreutils are available.
|
||||||
|
|
||||||
# Start from the current directory (or modify this if your school folder is elsewhere)
|
# Set the base directory. Change "." if needed.
|
||||||
base_dir="."
|
base_dir="."
|
||||||
|
|
||||||
# Find every directory recursively.
|
# Recursively find every directory starting from base_dir.
|
||||||
find "$base_dir" -type d -print0 | while IFS= read -r -d '' dir; do
|
find "$base_dir" -type d -print0 | while IFS= read -r -d '' dir; do
|
||||||
# Define the path for the README file.
|
toc="$dir/!TOC.md"
|
||||||
readme="$dir/README.md"
|
|
||||||
|
|
||||||
# Write the header into README.md
|
# Write header into !TOC.md
|
||||||
echo "# Index for $(basename "$dir")" > "$readme"
|
echo "# Table of Contents for $(basename "$dir")" > "$toc"
|
||||||
echo "" >> "$readme"
|
echo "" >> "$toc"
|
||||||
|
|
||||||
# List immediate subdirectories.
|
#########################
|
||||||
# -maxdepth 1 ensures we only list directories directly inside $dir.
|
# Process Subdirectories
|
||||||
subdirs=$(find "$dir" -mindepth 1 -maxdepth 1 -type d -print0)
|
#########################
|
||||||
if [ -n "$subdirs" ]; then
|
subdirs=()
|
||||||
echo "## Subdirectories" >> "$readme"
|
# Find immediate subdirectories (depth 1)
|
||||||
# Process each subdirectory.
|
while IFS= read -r -d '' subdir; do
|
||||||
find "$dir" -mindepth 1 -maxdepth 1 -type d -print0 | while IFS= read -r -d '' sub; do
|
# Save only the basename of the subdirectory
|
||||||
sub_name=$(basename "$sub")
|
subdirs+=( "$(basename "$subdir")" )
|
||||||
# Create an Obsidian link for the subdirectory.
|
done < <(find "$dir" -mindepth 1 -maxdepth 1 -type d -print0)
|
||||||
echo "- [[$sub_name]]" >> "$readme"
|
|
||||||
|
if [ ${#subdirs[@]} -gt 0 ]; then
|
||||||
|
# Sort the subdirectory names alphabetically
|
||||||
|
sorted_subdirs=($(printf "%s\n" "${subdirs[@]}" | sort))
|
||||||
|
echo "## Subdirectories" >> "$toc"
|
||||||
|
for sub in "${sorted_subdirs[@]}"; do
|
||||||
|
# Link to the !TOC file inside the subdirectory
|
||||||
|
echo "- [[${sub}/!TOC]]" >> "$toc"
|
||||||
done
|
done
|
||||||
echo "" >> "$readme"
|
echo "" >> "$toc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# List immediate files (exclude the README.md we are creating).
|
#################
|
||||||
files=$(find "$dir" -mindepth 1 -maxdepth 1 -type f ! -iname "README.md" -print0)
|
# Process Files
|
||||||
if [ -n "$files" ]; then
|
#################
|
||||||
echo "## Files" >> "$readme"
|
files=()
|
||||||
find "$dir" -mindepth 1 -maxdepth 1 -type f ! -iname "README.md" -print0 | while IFS= read -r -d '' file; do
|
# Find immediate files (depth 1), excluding the !TOC.md file itself.
|
||||||
file_name=$(basename "$file")
|
while IFS= read -r -d '' file; do
|
||||||
# Create an Obsidian link for the file.
|
files+=( "$(basename "$file")" )
|
||||||
echo "- [[$file_name]]" >> "$readme"
|
done < <(find "$dir" -mindepth 1 -maxdepth 1 -type f ! -iname "!TOC.md" -print0)
|
||||||
|
|
||||||
|
if [ ${#files[@]} -gt 0 ]; then
|
||||||
|
# Sort the file names alphabetically
|
||||||
|
sorted_files=($(printf "%s\n" "${files[@]}" | sort))
|
||||||
|
echo "## Files" >> "$toc"
|
||||||
|
for f in "${sorted_files[@]}"; do
|
||||||
|
echo "- [[${f}]]" >> "$toc"
|
||||||
done
|
done
|
||||||
echo "" >> "$readme"
|
echo "" >> "$toc"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user