I am just getting started with bash scripting and I was trying to write a simple script where I can list all the files with a certain extension using a bash script. I mostly code in Python or Matlab so I am very used to setting the address of the folder and using the cd function to change path to that folder and getting the list of the files in that folder. I was trying to do that with bash and I am not what I am doing wrong. For example, I am trying to list all the subfolders in a folder with the following address "/home/user012/Desktop/folder2Start"
So far i have tried
cd "/home/user012/Desktop/folder2Start"
and it hasn't done much when I run it from terminal.
How would I cd into it and list its folders?
Any help would be greatly appreciated..