Say I have a directory structure that is like Parent_dir/<name>/<date>/ How can I use a bash script placed into Parent_dir to navigate through every /<name>/<date>/ subdirectory and create a blank text file named <name>_<date>.txt within /<name>/<date>/ subdirectory? 
Bash: creating file names according to directory names
bash;shell script;directory;filenames
If you want the filenames to literally be named name_date.txt, try this:#!/bin/bashfor dir in $(find . -maxdepth 2 -mindepth 2 -type d)do    touch $dir/name_date.txtdoneIf you want the filenames to be <name>_<date>.txt, do this instead:#!/bin/bashIFS=$'\n'for dir in $(find . -maxdepth 1 ! -path . -type d)do    for subdir in $(find $dir -mindepth 1 -type d)    do        base_dir=$(basename $dir)        base_subdir=$(basename $subdir)        touch $base_dir/$base_subdir/$base_dir_$base_subdir.txt    donedone