I am using dos2unix *.sh to convert all the .sh files in the current directory.
So how to convert all the .sh files in the subfolders as well?
I tried this but it does not work for bash: How to run dos2unix for all files in a directory and subdirecty in Powershell
you could use
find:this locates all
*.sh(-name "*.sh") files (-type f) in the current directory (recursing into subdirectories as well) and executes on all of them thedos2unixutility