I\'m trying to find all files with a specific extension in a directory and its subdirectories with my bash (Latest Ubuntu LTS Release).
This is what\'s written in a
{ missing after browsefolders ()$in should be $suffixcut gets you only the middle part of front.middle.extension. You should read up your shell manual on ${varname%%pattern} and friends.I assume you do this as an exercise in shell scripting, otherwise the find solution already proposed is the way to go.
To check for proper shell syntax, without running a script, use sh -n scriptname.