title: Bash: Find directories with trailing spaces at the end of each name
body: <p>I am a complete newbie to Linux (I am using Linux Mint) and I need your help understanding basic bash commands.</p>
  
  <p>I store my files on an external hard drive (NTFS formatting) that I use in different OS. My files are organized in many  directories (folders) and inside each primary directory I have more folders and inside those folders I have other folders and so on. I need a bash command to find all the <strong>directories</strong> with trailing spaces at the end of each name. If possible, I would also like to use a bash command to remove the blank space(s). I have tried looking into other answers but I only find the commands and no clear explanation of what they do, so I am not sure whether that is what I am looking for and I don’t want to risk changing something inadvertently. Any help explaining which commands to use would be greatly appreciated!</p>