Shell Script – Find First Occurrence Position And Last Occurrence Position Of SubString In String
Let’s write a shell script example to make note about how to find the first occurrence position and the last occurrence position of substring in string. Output: