One thing to get familiar with when scripting is regular expressions, also coined regex. Here
is a cheat sheet which gives good coverage of many of the operators, and here
is a more encompassing guide. Also good to read the official glibc manual
regarding regular expressions. And it's a very complicated topic. I have to admit that not needing extensive script support to do things like manage files and directories, I'm very poor at this talent.