(no title)
pathikrit | 3 years ago
To get the last 3 characters, do `echo ${foo: -3}`. Are you trying to get the file extension though? What if the extension is not 3 characters e.g. `foo.jpeg`? You then want to do `${foo##*.}`
pathikrit | 3 years ago
To get the last 3 characters, do `echo ${foo: -3}`. Are you trying to get the file extension though? What if the extension is not 3 characters e.g. `foo.jpeg`? You then want to do `${foo##*.}`
bee_rider|3 years ago
IshKebab|3 years ago
seba_dos1|3 years ago