Bash errors and script if condition

I am working on a Bash script on RedHat Linux 8.5 I want to create a script that will process a directory, analyse the sub-folders and create a built script. Its a painful process as I’m not very experienced with writing bash scripts, so far: #!/bin/bash cd ~/work-mmcm2 ls -d * >../dirs.txt pass=1 while read… Read More Bash errors and script if condition