I would now like to cut the variable $SUFFIX so that I get only "MLAC". I have a feeling I could just add a pipe to a cut command, but there is a complication. The problem is that I will also have file names like:
S2002254132542.L1A_LAC.x.hdf
where the suffix will be L1A_LAC (note the missing M). Therefore although the cut will always start at the same number, it will not cut TO the same number. Rather I would just like to tell it to start cutting $SUFFIX and cut to the end of the string.
How do you tell cut to start at a specific number element in a string and cut until it reaches the end?